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.