-Wold-style-cast for g++, please ?

Alexandre Oliva oliva@dcc.unicamp.br
Thu Sep 25 19:36:00 GMT 1997


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



More information about the Gcc mailing list