This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/37187] please provide a way to treat -pedantic as warning when using -Werror
- 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: 21 Aug 2008 18:04:28 -0000
- Subject: [Bug c/37187] please provide a way to treat -pedantic as warning when using -Werror
- References: <bug-37187-15165@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from manu at gcc dot gnu dot org 2008-08-21 18:04 -------
There are several bugs here:
1) -Wno-error=pendatic does not work. But neither does -Werror=pedantic or
-no-pedantic, so this is a feature request. We would need to implement
-Wpedantic as a synonym of -pedantic. I have been thinking about doing this for
a while anyway just for consistency. However, -pedantic-errors is not
equivalent to -Werror=pedantic, so not sure in which direction should the
inconsistency be solved.
2) The duplicated messages. This seems hard to fix: too many jumps around, too
many global variables being used...
x.c:10: warning: initializer element is not computable at load time
x.c:10: warning: initializer element is not computable at load time
3) -fdiagnostics-show-option does not show [-pedantic]. This is easy to fix.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37187