This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]