Bug 136980 - 4 * missing return statement + local variable not set
4 * missing return statement + local variable not set
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: iiimf-le-chinput (Show other bugs)
3
All Linux
medium Severity medium
: ---
: ---
Assigned To: Yu Shao
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2004-10-24 13:36 EDT by David Binderman
Modified: 2007-11-30 17:10 EST (History)
1 user (show)

See Also:
Fixed In Version: 0.3-12
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-10-29 07:41:35 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description David Binderman 2004-10-24 13:36:27 EDT
Description of problem:

I just tried to compile package iiimf-le-chinput-0.3-9 from 
Redhat Fedora Core 3 Test 3.

The compiler said

1.

xl_sysphrase.c(271): remark #592: variable "pPhrase" is used before
its value is set

The source code is

    PureSystemPhrase *pPhrase = pPhrase;

pPhrase gets set to it's own uninitialised value. Suggest code rework.

2.

addphrase.c(161): warning #1011: missing return statement at end of
non-void function "ProcessingSystemPhrase"

The source code is

    fclose (fp);
}

Suggest add return statement, since the function returns data type int.

3.

levelphrase.c(143): warning #1011: missing return statement at end of
non-void function "ProcessingSystemPhrase"

Duplicate.

4.

xaux_ext_common.c(347): warning #1011: missing return statement at end
of non-void function "xaux_ext_process_client_message"

Similar.

5.

Converter.c(108): remark #1011: missing return statement at end of
non-void function "modifyEvent"

In this case, suggest mark return type of function as void.



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


How reproducible:


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


Expected results:


Additional info:
Comment 1 Yu Shao 2004-10-29 07:41:35 EDT
patch made and built, thanks.

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