[Bug 705160] New: Let gcc warn about all uninitialized variables
https://bugzilla.novell.com/show_bug.cgi?id=705160 https://bugzilla.novell.com/show_bug.cgi?id=705160#c0 Summary: Let gcc warn about all uninitialized variables Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: x86-64 OS/Version: openSUSE 11.4 Status: NEW Severity: Enhancement Priority: P5 - None Component: Development AssignedTo: pth@novell.com ReportedBy: giecrilj@stegny.2a.pl QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0 The compiler gcc currently warns about uninitialized scalar variables but not about compound variables. Reproducible: Always Steps to Reproduce: 1. { cat>foo.c<<'/* EOF */' && gcc -Wall -pedantic-errors foo.c; } struct i { int x; }; struct i foo () { struct i x; return x; } int bar () { int y; return +y; } /* EOF */ 2. 3. Actual Results: foo.c: In function ‘bar’: foo.c:3:21: warning: ‘y’ is used uninitialized in this function Expected Results: foo.c: In function ‘foo’: foo.c:2:?: warning: ‘x’ is used uninitialized in this function foo.c: In function ‘bar’: foo.c:3:21: warning: ‘y’ is used uninitialized in this function -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=705160 https://bugzilla.novell.com/show_bug.cgi?id=705160#c Philipp Thomas <pth@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pth@novell.com AssignedTo|pth@novell.com |rguenther@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=705160 https://bugzilla.novell.com/show_bug.cgi?id=705160#c1 Richard Guenther <rguenther@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |UPSTREAM --- Comment #1 from Richard Guenther <rguenther@novell.com> 2011-07-12 14:25:31 UTC --- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=705160 https://bugzilla.novell.com/show_bug.cgi?id=705160#c Christopher Yeleighton <giecrilj@stegny.2a.pl> changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |http://gcc.gnu.org/bugzilla | |/show_bug.cgi?id=49754 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com