This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -Wold-style-cast for g++, please ?
Alexandre Oliva writes:
> Here's a patch that creates -Wold-style-cast, produced whenever an
> old-style cast is issued. I added it to -Wall too; it should be easy
> to change this.
I forgot the ChangeLog entries, sorry:
* lang-options.h: new -Wold-style-cast flag
* cp-tree.h (warn_old_style_cast): new variable
* decl2.c (warn_old_style_cast): ditto
(lang_decode_option): support -Wold-style-cast
(reparse_absdcl_as_casts): produce old-style-cast warning
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
Universidade Estadual de Campinas, SP, Brasil