This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/28322] GCC new warnings and compatibility
- 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: 16 Nov 2007 20:01:11 -0000
- Subject: [Bug other/28322] GCC new warnings and compatibility
- References: <bug-28322-5724@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from manu at gcc dot gnu dot org 2007-11-16 20:01 -------
> Specification of the proposed new behaviour:
>
> 1. GCC should ignore unknown -Wno-* options if no other warnings are to
> be issued. This is always correct since the only effect of such an
> option would be to suppress warnings which might otherwise be
> issued. If no warnings are to be issued at all then treating even
> an unknown suppression as a no-op is clearly correct.
Ignoring the -Wno-* seems easy. I am not sure about the proper way to buffer
the "unknown option" messages until the end, so we can check whether any
warnings (or errors) were produced.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28322