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 for g++, please ?



> 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).




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