Bug 138574 - missing return statement
Summary: missing return statement
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: autoconvert
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jens Petersen
QA Contact: Bill Huang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-11-09 22:54 UTC by David Binderman
Modified: 2007-11-30 22:10 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2005-05-16 11:17:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description David Binderman 2004-11-09 22:54:53 UTC
Description of problem:

I just tried to compile package autoconvert-0.3.7-15 from 
Redhat Fedora Core 3.

The compiler said

unicode.c(66): warning #1011: missing return statement at end of
non-void function "u8toun"

The source code is

                return 3;
        }
}

What happens if none of the if statements are executed ?

Suggest add return statement at the end of the routine.


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


How reproducible:


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


Expected results:


Additional info:

Comment 1 Jens Petersen 2005-05-16 11:17:01 UTC
This is fixed in newer releases upstream already,
and will be in 0.3.13-1.


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