Bugzilla – Bug 152210
transset-20040120-8: local variable used before set
Last modified: 2006-02-20 20:58:53 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.
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.