After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 302178 - local variable used before set
local variable used before set
Status: RESOLVED FIXED
Product: nautilus-cd-burner
Classification: Deprecated
Component: cd-burner
2.10.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus CD Burner Maintainers
Nautilus CD Burner Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-04-27 14:55 UTC by David Zeuthen (not reading bugmail)
Modified: 2005-04-27 18:46 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description David Zeuthen (not reading bugmail) 2005-04-27 14:55:27 UTC
Version details: FC package version 2.10.0-2
Distribution/Version: Fedora Core 4 test

[ This bug was originally filed here
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=155976 ]

I just tried to compile nautilus-cd-burner-2.10.0-2 from Redhat
Fedora Core development tree with the most excellent Intel C
compiler.

The compiler said

nautilus-cd-burner.c(840): remark #592: variable "flags" is used before its
value is set

The source code is

	flags |= NAUTILUS_BURN_RECORDER_WRITE_OVERBURN;

Suggest initialise local variable "flags" before first use.
Comment 1 William Jon McCann 2005-04-27 15:03:43 UTC
This should have been fixed a few days ago in stable and head.  Are you still
having the problem?
Comment 2 William Jon McCann 2005-04-27 18:46:28 UTC
Strange that gcc doesn't give a warning.