Red Hat Bugzilla – Bug 114247
used before set ?
Last modified: 2007-11-30 17:10:35 EST
Description of problem:
I just tried to compile package GConf-1.0.9-11, from Redhat
Fedora Core 1.
The compiler said
gconftool.c(551): remark #592: variable "conf" is used before its
value is set
The source code is
if (do_get_default_source (conf, args) == 1)
I recommend initialising conf before first use.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Which compiler did you use? I've never seen gcc throw something like
that with this package. In addition this is a GNOME 1.x package that
is effectively not maintained any longer and shouldn't be used by many
if any packages at all - at least not from FC2 on.
I used Intel's icc - much better than gcc for both
warnings and code quality.
Independent of how much use it gets, it's part of FC1,
with all the quality requirements that implies,
and fixing easy to fix bugs seems like a reasonable thing
I don't think its worth packaging a patch for a compiler warning in a
If this was GConf2, I'd fix it upstream in a flash and close as
resolved upstream. But GConf (1.x) isn't going to see new releases.
>I don't think its worth packaging a patch for a compiler warning in a
Fair enough, but the bug still exists in Fedora Core 3 - someone
must be using it or it wouldn't be in Core 3.