This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -isystem vs. #pragma system_header
On Thu, May 18, 2000 at 07:44:15AM +0200, Branko Čibej wrote:
> Zack Weinberg wrote:
> >
> > On Wed, May 17, 2000 at 06:48:40PM -0700, Nathan Myers wrote:
> > > This can be solved using something like the above suggested feature, or
> > > by adding (yet) another "-W" option to control how the compiler emits
> > > warnings for system headers.
> >
> > I could trivially add a -fno-system-headers or something like that
> > that shut off all special treatment for system headers. Anything more
> > complex than that is going to need careful discussion.
>
> I did that two years ago, see
>
> http://gcc.gnu.org/ml/gcc/1998-06/msg01120.html
This patch does the opposite of what I had in mind. I was thinking of
an option that would make system headers ordinary - all warnings
enabled, no magic extern "C", etc.
Possibly your -Wno-system-headers should be the default and
-Wsystem-headers should do what I had in mind. We've been going that
way for awhile now.
zw