Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 143796 - missing return statement on non void function
missing return statement on non void function
Product: Fedora
Classification: Fedora
Component: quagga (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jay Fenlason
Depends On:
  Show dependency treegraph
Reported: 2004-12-28 05:22 EST by David Binderman
Modified: 2014-08-31 19:27 EDT (History)
1 user (show)

See Also:
Fixed In Version: quagga-0.98.0
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-10-17 15:29:59 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description David Binderman 2004-12-28 05:22:13 EST
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:
Actual results:

Expected results:

Additional info:

Note You need to log in before you can comment on or make changes to this bug.