Bug 135985 - missing return expression
Summary: missing return expression
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: bash
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-10-16 08:22 UTC by David Binderman
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-10-18 12:37:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description David Binderman 2004-10-16 08:22:14 UTC
Description of problem:

I just tried to compile package bash-3.0-9 from
Redhat Fedora Core 3 Test 2.

The compiler said

bashline.c:295: warning: `return' with no value, in function returning
non-void

The source code is

      if ((at == 0 && on_or_off == 0) || (at != 0 && on_or_off != 0))
        return;

Suggest add expression in the return statement.




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


How reproducible:


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


Expected results:


Additional info:

Comment 1 Tim Waugh 2004-10-18 12:37:13 UTC
Fixed before 3.0-16.


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