This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/48851] lto-plugin.c:224:7: error: missing sentinel in function call [-Werror=format]
- From: "jsg at openbsd dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 29 Jun 2011 21:02:28 +0000
- Subject: [Bug lto/48851] lto-plugin.c:224:7: error: missing sentinel in function call [-Werror=format]
- Auto-submitted: auto-generated
- References: <bug-48851-4@http.gcc.gnu.org/bugzilla/>
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