Bug 139579 - evms-2.5.3-7: local variable used before set
Summary: evms-2.5.3-7: local variable used before set
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: unspecified
Hardware: All SUSE Other
: P5 - None : Minor
Target Milestone: ---
Assignee: Thomas Fehr
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-16 12:23 UTC by David Binderman
Modified: 2005-12-19 11:29 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-12-16 12:23:28 UTC
I just tried to compile package evms-2.5.3-7 with the Intel C compiler 

It said

worker.c(211): warning #592: variable "engine_version" is used before its value is set

The source code is

        evms_version_t engine_version;
        void * return_buf = NULL;

        LOG_PROC_ENTRY();

        evms_sizeof_host_to_net(&size, evms_version_f, engine_version.major, engine_version.minor, engine_version.patchlevel);

Suggest initialise local variable "engine_version" before first use.

I tried to contact the author [ corryk@us.ibm.com ] but didn't get an answer.
Comment 1 Thomas Fehr 2005-12-19 11:29:26 UTC
Added a path that should prevent this warning to package in STABLE.