This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: warning: conflicting types for built-in function %qD


Would it be OK, if this warnings are disabled for system headers ?

Thanks,
-
Devang

--- c-decl.c.~1~ 2005-01-06 19:26:09.000000000 -0800
+++ c-decl.c 2005-02-15 11:59:48.000000000 -0800
@@ -1169,11 +1169,15 @@ diagnose_mismatched_decls (tree newdecl,
*oldtypep = oldtype = trytype;
else
{
- /* If types don't match for a built-in, throw away the
- built-in. No point in calling locate_old_decl here, it
- won't print anything. */
- warning ("%Jconflicting types for built-in function %qD",
- newdecl, newdecl);
+ if (!DECL_IN_SYSTEM_HEADER (newdecl))
+ {
+ /* If types don't match for a built-in, throw away
+ the built-in. No point in calling
+ locate_old_decl here, it won't print
+ anything. */
+ warning ("%Jconflicting types for built-in function %qD",
+ newdecl, newdecl);
+ }
return false;
}
}



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]