From mboxrd@z Thu Jan 1 00:00:00 1970 From: Branko Cibej To: law@cygnus.com Cc: Carlo Wood , "egcs@cygnus.com" Subject: Re: Desire gcc option to skip warnings in standard headers Date: Tue, 30 Jun 1998 09:03:00 -0000 Message-id: <3598A25B.5C601577@hermes.si> References: <15746.899189654@hurl.cygnus.com> X-SW-Source: 1998-06/msg01120.html Jeffrey A Law wrote: > > 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 and disabled by -Wno-. 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 and -Wno- do the right thing. Right. The attached patches don't change the default behaviour, but inhibit warnings from system headers if -Wno-system-headers. The patch for cpplib is separate because I haven't really tested it -- I'd have to reconfigure the compiler. BTW, the patches are against the latest snapshot. -- Branko Cibej HERMES SoftLab, Litijska 51, 1000 Ljubljana, Slovenia phone: (++386 61) 186 53 49 fax: (++386 61) 186 52 70