Red Hat Bugzilla – Bug 117099
three local variables used before set
Last modified: 2007-11-30 17:10:37 EST
Description of problem:
I just tried to compile Core2 Test1 package transfig-3.2.4-5
The compiler said
genemf.c(1323): remark #592: variable "r" is used before its value is set
genemf.c(1323): remark #592: variable "g" is used before its value is set
genemf.c(1323): remark #592: variable "b" is used before its value is set
The source code is
fillcolrgb(round(r * f), round(g * f), round(b * f));
Suggest init r, g and b before first use.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
I can copnfirm that this bug still exists in Fedora Core 3.
It also might help if the code were upgraded from K&R C,
at least fifteen years old, to ISO standard C.
it's now fixed in transfig-3.2.4-9, which will show up im rawhide
soon. Thanks for your report.