This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: c: Improve -Wshadow warnings


On Wed, Dec 05, 2001 at 09:59:02PM +0000, Neil Booth wrote:
> 	* c-common.c (shadow_warning): New function, moved from cp/decl.c.
> 	* c-common.h (shadow_warning): New.
> 	* c-decl.c: Include c-common.h.
> 	(warn_if_shadowing): New, broken out of pushdecl.
> 	(pushdecl): Use warn_if_shadowing.
> 	(store_parm_decls): Prevent duplicate -Wshadow warnings.
> 	* cp/decl.c: Include c-common.h.
> 	(shadow_warning): Move to c-common.c.
> 
> 	* gcc.dg/Wshadow-1.c: New test.

Ok.


r~


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