Bug 152210 - transset-20040120-8: local variable used before set
Summary: transset-20040120-8: 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 Linux 10.1
: P5 - None : Normal
Target Milestone: ---
Assignee: Bernhard Kaindl
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-20 11:04 UTC by David Binderman
Modified: 2006-02-20 20:58 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 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.