Commit 22d74562 by Doug Evans

(v_pedwarn_with_decl): Don't even issue warnings from

pedantic errors in system header files.

From-SVN: r7398
parent 2bee0449
...@@ -1560,14 +1560,16 @@ v_pedwarn_with_decl (decl, s, ap) ...@@ -1560,14 +1560,16 @@ v_pedwarn_with_decl (decl, s, ap)
"errors" in system header files. Sometimes fixincludes can't fix what's "errors" in system header files. Sometimes fixincludes can't fix what's
broken (eg: unsigned char bitfields - fixing it may change the alignment broken (eg: unsigned char bitfields - fixing it may change the alignment
which will cause programs to mysteriously fail because the C library which will cause programs to mysteriously fail because the C library
or kernel uses the original layout). or kernel uses the original layout). There's no point in issuing a
warning either, it's just unnecessary noise. */
??? In fact, we may wish not to issue any message in this case. */ if (! DECL_IN_SYSTEM_HEADER (decl))
{
if (flag_pedantic_errors && ! DECL_IN_SYSTEM_HEADER (decl)) if (flag_pedantic_errors)
v_error_with_decl (decl, s, ap); v_error_with_decl (decl, s, ap);
else else
v_warning_with_decl (decl, s, ap); v_warning_with_decl (decl, s, ap);
}
} }
void void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment