Bug 143796

Summary: missing return statement on non void function
Product: [Fedora] Fedora Reporter: David Binderman <dcb314>
Component: quaggaAssignee: Jay Fenlason <fenlason>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: jfeeney
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: quagga-0.98.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-10-17 19:29:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Binderman 2004-12-28 10:22:13 UTC
Description of problem:

I just tried to compile package quagga-0.97.3-2. from 
Redhat Fedora development tree.

The compiler said

vty.c(1980): warning #1011: missing return statement at end of
non-void function "vtysh_write"

The source code is

static int
vtysh_write (struct thread *thread)
{
  struct vty *vty = THREAD_ARG (thread);

  vty->t_write = NULL;
  if (buffer_flush_available(vty->obuf, vty->fd))
    vty_event (VTYSH_WRITE, vty->fd, vty);
}

Suggest add return statement to end of routine.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info: