Why warn about #include_next in system headers?
Franz Sirl
Franz.Sirl-kernel@lauterbach.com
Mon Feb 5 15:21:00 GMT 2001
On Tuesday 06 February 2001 00:15, Neil Booth wrote:
> Franz Sirl wrote:-
>
> > while compiling kdelibs-2.1beta2 with gcc-20010204 there are a lot of
> >
> > /usr/include/limits.h:124:3: warning: #include_next is a GCC extension
> >
> > I find this warning rather useless in systemheaders, in this case glibc
> > _wants_ to use the GCC extension, so why warn?
>
> There are only 2 reasons I can think of:
>
> 1) You asked for warnings in system headers
> 2) For some reason CPP doesn't think the file it appears in is a
> system header.
Hmm, does -I/usr/include qualify for 2)?
Franz.
More information about the Gcc-bugs
mailing list