This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -Wold-style-cast for g++, please ?
- To: mrs at wrs dot com (Mike Stump)
- Subject: Re: -Wold-style-cast for g++, please ?
- From: Joe Buck <jbuck at synopsys dot com>
- Date: Thu, 25 Sep 97 11:35:47 PDT
- Cc: chris at etca dot fr, egcs at cygnus dot com
> I wouldn't be against this... I kinda like the idea... It could be a
> canidate for -Weverything (or whatever it is called).
While we're at it: -Wcast-qual should warn about old-style casts that cast
away const, but not warn about uses of const_cast (since const_cast serves
the function of alerting the reader of the code that const is being cast
away, issuing a warning is redundant).