Bug 134417 - simias-1.1.5242.1-4: returning garbage to caller
Summary: simias-1.1.5242.1-4: returning garbage to caller
Status: VERIFIED FIXED
Alias: None
Product: iFolder Denali
Classification: iFolder
Component: Simias (show other bugs)
Version: 3.1
Hardware: All SuSE Linux 10.0
: P5 - None : Minor
Target Milestone: 3.4
Assignee: Boyd Timothy
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-18 16:00 UTC by David Binderman
Modified: 2011-10-11 07:09 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2005-11-18 16:00:59 UTC
I just tried to compile package simias-1.1.5242.1-4 with the Intel C compiler.

It said

1.

simias-event-client.c(407): warning #1011: missing return statement at end of non-void function "sec_cleanup"
simias-event-client.c(958): warning #1011: missing return statement at end of non-void function "sec_proc_msg_thread"
simias-event-client.c(890): warning #1011: missing return statement at end of non-void function "sec_reg_thread"
simias-event-client.c(782): warning #1011: missing return statement at end of non-void function "sec_thread"

Suggest add return statements.

2.

simias-event-client.c(807): warning #117: non-void function "sec_reg_thread" should return a value

The source code is

                if (ec->state == CLIENT_STATE_SHUTDOWN) {
                        return;
                }

Suggest change return statement to

					return NULL;
Comment 1 Tim Mellor 2005-11-28 16:52:29 UTC
Mike is this your area of expertise?
Comment 2 Mike Lasky 2005-11-28 17:04:29 UTC
This is Boyd's area.
Comment 3 Boyd Timothy 2006-03-02 18:33:47 UTC
You are using an Intel compiler in linux?  We support GCC version 4.  Please recompile with GCC4.
Comment 4 David Binderman 2006-03-02 21:54:46 UTC
(In reply to comment #3)
> You are using an Intel compiler in linux?  

Yes.

>We support GCC version 4.  

True, but irrelevant ?

>Please recompile with GCC4.

Recompiling with gcc4 would just ignore the problem.

The simias source code appears to be broken. I recommend fixing it.


Comment 5 Boyd Timothy 2006-03-02 22:10:30 UTC
I just realized that I need to read these bug reports more closely.  I got into "the zone" of clearing out as many as possible.  Thanks for catching this.  I've fixed up the return statements as you've suggested (into the 3.4 branch and svn trunk).