This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/36901] pedwarn() + -pedantic-errors + -w (inhibit_warnings) should not emit errors
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jul 2008 16:30:40 -0000
- Subject: [Bug other/36901] pedwarn() + -pedantic-errors + -w (inhibit_warnings) should not emit errors
- References: <bug-36901-13511@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from manu at gcc dot gnu dot org 2008-07-22 16:30 -------
One testcase could use #include_next in a system header and compile with just
-pedantic-errors. This should be silent but it currently emits an error.
Another testcase could be just:
static int sc = INT_MAX + 1;
compiled with "-pedantic-errors -w". This should be silent as well, but it will
give an error.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36901