This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/14172] g++ should not emit effc++ warnings in system headers


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]