This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Desire gcc option to skip warnings in standard headers
- To: Branko Cibej <branko dot cibej at hermes dot si>
- Subject: Re: Desire gcc option to skip warnings in standard headers
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Tue, 30 Jun 1998 00:54:14 -0600
- cc: Carlo Wood <carlo at runaway dot xs4all dot nl>, "egcs at cygnus dot com" <egcs at cygnus dot com>
- Reply-To: law at cygnus dot com
In message <3597B270.EC811EB4@hermes.si>you write:
> Carlo Wood wrote:
>
> > | Comments, anybody? Is this the right way to do it?
> >
> > I don't like this, I think the new option should turn
> > warning off if used, but by default give warnings for
> > system headers too.
>
> That's trivial to do, of course -- most probably I should just invert the
> meaning of the option. What about the name of the option, though? I don't like
> -W(no-)system-headers, even though I thought it up myself...
Warnings should be enabled by -W<foo> and disabled by -Wno-<foo>. I'm
not aware of any that do not follow that convention and I don't think we
should start making any now :-)
The default behavior can either be on or off, that's separate from
making -W<foo> and -Wno-<foo> do the right thing.
jeff