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: Joe Buck <jbuck at Synopsys dot COM>
- Subject: Re: -Wold-style-cast and system headers
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Tue, 06 Jul 1999 11:21:27 -0600
- cc: espie at quatramaran dot ens dot fr, egcs at egcs dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <199907061658.JAA06246@atrus.synopsys.com>you write:
> > fixincludes is meant to deal with bugs in the system header files that
> > prevent gcc from properly compiling code. fixincludes is not meant to
> > fix bugs which cause warnings.
>
> 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.
> warnings. The risk of tampering with a system include file starts to
> exceed the benefit.
Having spent weeks looking at system header files & fixinc recently I would
say we are already at that point.
jeff