[Bug c++/14172] g++ should not emit effc++ warnings in system headers
matthew at linuxfromscratch dot org
gcc-bugzilla@gcc.gnu.org
Fri Nov 19 07:51:00 GMT 2004
------- Additional Comments From matthew at linuxfromscratch dot org 2004-11-19 07:51 -------
Putting trivial test cases together, both with and without #pragma GCC
system_header in them, the compiler behaves correctly. Compiling the test case
in comment 1 shows results in 24 lines of warnings, none of which the user can
do anything about, as they all relate to the _internal_ headers in
/usr/include/c++/${gcc-version}/bits. So, system headers appear to be treated
correctly (e.g. <list> has the #pragma GCC system_header), but why are the
headers in bits/ not treated as system headers? Neither adding the pragma to
those headers, nor adding "-isystem /usr/include/c++/${gcc-version}/bits" to the
command line appeared to have any effect.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14172
More information about the Gcc-bugs
mailing list