This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/52127] pedantic-errors is inconsistent in its behavior
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 05 Feb 2012 21:39:16 +0000
- Subject: [Bug c/52127] pedantic-errors is inconsistent in its behavior
- Auto-submitted: auto-generated
- References: <bug-52127-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52127
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-02-05 21:39:16 UTC ---
You need -Wsystem-headers to enable the diagnostic in a system header
Stripping the # lines means it is no longer considered a system header