[Bug lto/48851] lto-plugin.c:224:7: error: missing sentinel in function call [-Werror=format]
mrs at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jul 12 18:04:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48851
mrs@gcc.gnu.org <mrs at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mrs at gcc dot gnu.org
--- Comment #22 from mrs at gcc dot gnu.org <mrs at gcc dot gnu.org> 2011-07-12 18:03:23 UTC ---
Try:
Doing diffs in fixincludes:
--- fixincludes/inclhack.def.~1~ 2011-06-15 18:47:49.000000000 -0700
+++ fixincludes/inclhack.def 2011-07-12 11:01:35.000000000 -0700
@@ -4417,6 +4417,7 @@ fix = {
files = sys/types.h;
/* avoid changing C++ friendly NULL */
bypass = __cplusplus;
+ bypass = __null;
select = "^#[ \t]*define[ \t]+NULL[ \t]+\\(\\(void[ \t]*\\*\\)0\\)";
c_fix = format;
c_fix_arg = "#define NULL 0";
--------------
and let me know if it works. If so, I'd propose this.
More information about the Gcc-bugs
mailing list