Bug 139579

Summary: evms-2.5.3-7: local variable used before set
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Thomas Fehr <fehr>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: SUSE Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

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.