[Bug lto/48851] lto-plugin.c:224:7: error: missing sentinel in function call [-Werror=format]

jsg at openbsd dot org gcc-bugzilla@gcc.gnu.org
Wed Jun 29 21:02:00 GMT 2011


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

--- Comment #11 from Jonathan Gray <jsg at openbsd dot org> 2011-06-29 21:01:45 UTC ---
There is some problem with the gcc headers it would seem, placing #include
<stddef.h> at the start of lto-plugin.c the correct definition of NULL gets
picked up.  I am still trying to figure out where exactly the problem is but
grep shows at least:

gcc/tsystem.h:#define NULL 0
gcc/system.h:#define NULL 0
libiberty/getopt1.c:#define NULL 0
libiberty/argv.c:#define NULL 0



More information about the Gcc-bugs mailing list