This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -Wold-style-cast and system headers
- To: Jeffrey A Law <law at cygnus dot com>, Joe Buck <jbuck at synopsys dot com>, espie at quatramaran dot ens dot fr, egcs at egcs dot cygnus dot com
- Subject: Re: -Wold-style-cast and system headers
- From: Zack Weinberg <zack at rabi dot columbia dot edu>
- Date: Wed, 07 Jul 1999 00:17:02 -0400
> > 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