This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: GNU warnings
- From: "Rupert Wood" <me at rupey dot net>
- To: "'Phil Prentice'" <PhilP at tsd dot serco dot com>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Tue, 11 Dec 2001 13:39:42 -0000
- Subject: RE: GNU warnings
Phil Prentice wrote:
> I am using the GNU compiler to compile some generated source.
> Unfortunatly the generated source includes a file of the form:-
>
> void TEST_PROGRAM (void)
> {
>
>
> which of course gives me the warning:-
>
> warning: This file contains more '{'s than '}'s.
>
> I would like to inhibit this warning from being output, but leave
> other warnings enabled.
No, this warning cannot be disabled in 2.95.x at least without editing
the source. This is really an enforcement of style so you're right: it
ought to be flaggable.
Incidentally, GCC 3+ will not generate this warning (which could be a
bad thing depending how you look at it).
Rup.