Bug 152210

Summary: transset-20040120-8: local variable used before set
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Bernhard Kaindl <bk>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Binderman 2006-02-20 11:04:38 UTC
I just tried to compile package transset-20040120-8 with the Intel C compiler.

It said

transSet.c(249): warning #592: variable "opacity" is used before its value is set

The source code is

	if(flag_verbose) printf("Found transparency: %g\n", (double) opacity / OPAQUE);

Suggest code rework. There seems to be some mixup between local variables
opacity and current_opacity.
Comment 1 Bernhard Kaindl 2006-02-20 20:58:53 UTC
Thanks, the fix is to replace opacity with current_opacity and
this fixed the printf output to be correct, so the printf is obviously corrected.

Thanks for the bug report, the fix is submitted for the next beta now.

Maybe the submission was too late for beta5, but I'm quite certain that
it will be in the succeeding beta.