[Bug c/49754] Let gcc warn about all uninitialized variables

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jul 15 08:38:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49754

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-07-15 08:36:30 UTC ---
(In reply to comment #0)
> == Expected Results ==  
> foo.c: In function ‘foo’:
> foo.c:2:?: warning: ‘x’ is used uninitialized in this function

It should really warn if 'x.i' is used uninitialized, not 'x'



More information about the Gcc-bugs mailing list