This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/29768] Implement -Werror for each kind of warning
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Nov 2006 19:30:36 -0000
- Subject: [Bug other/29768] Implement -Werror for each kind of warning
- References: <bug-29768-315@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-11-08 19:30 -------
Already implemented in 4.2.0 and above:
-Werror=
Make the specified warning into an errors. The specifier for a warning is
appended, for example -Werror=switch turns the warnings controlled by -Wswitch
into errors. This switch takes a negative form, to be used to negate -Werror
for specific warnings, for example -Wno-error=switch makes -Wswitch warnings
not be errors, even when -Werror is in effect. You can use the
-fdiagnostics-show-option option to have each controllable warning amended with
the option which controls it, to determine what to use with this option.
Note that specifying -Werror=foo automatically implies -Wfoo. However,
-Wno-error=foo does not imply anything.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29768