This is the mail archive of the gcc@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]

Re: cpp oddities. was: sparc-sun-solaris2.8 headers: fixinc, cpplib



> Really, we want all front end warnings to check for being in a system
> header; that's what CPP does.  It's simplest to do that in the warning
> routines, not in each place we might issue a warning (which is what we
> seem to do now).

While this is a good thing for end users, it may also tend to degrade
the quality of the libraries we supply if we are not careful.  In
particular, libstdc++ headers should be as warning-free as they can be
made without resort to such measures.  If we have a warning that cannot
be silenced in a system header without making the code worse, it is an
ill-considered warning and, at least, should not go into -Wall (as users
will not be able to silence the warning without making their code worse).

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