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: -Wold-style-cast and system headers



> > It's appropriate to attempt to fix warnings that everyone will get
> > (warnings enabled by default) and possibly -Wall warnings. 
> Sorry to disagree with you Joe, but no, this is not something we want to
> do.  It's an enormous can of worms.
>
> Fixincludes should do as little as possible to make the system header files
> work correctly with gcc, no more, no less.

What about disabling -Wold-style-cast for `system headers' (as defined by
the preprocessor) or inside extern "C" blocks?  We do similar things with
other warnings, and this is much lower impact than mucking with
fixincludes.

zw


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