Why warn about #include_next in system headers?
Neil Booth
neil@daikokuya.demon.co.uk
Mon Feb 5 15:16:00 GMT 2001
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.
Neil.
More information about the Gcc-bugs
mailing list