[Bug c/31633] Calling an uninitialized function pointer does not trigger a warning
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Apr 19 16:25:00 GMT 2007
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-04-19 17:24 -------
Use -O1 if you want to find unitialized variables (including function
pointers):
[pinskia-laptop:gcc/objdir-noboot/gcc] pinskia% ./cc1 -quiet -W -Wall t5.c -O1
t5.c: In function 'foo':
t5.c:4: warning: 'bar' is used uninitialized in this function
This is documented as a limitation also.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |WONTFIX
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31633
More information about the Gcc-bugs
mailing list