Wshadow Problem

Neil Booth neil@daikokuya.demon.co.uk
Wed Feb 20 00:40:00 GMT 2002


Soubhik wrote:-

> Here's the simple program:
> 
> typedef int myint;
> extern void foo(myint myint);
> 
> Here's c compilation:
> #gcc -c -Wshadow typetest.c
> typetest.c:2: warning: declaration of `myint' shadows global declaration
> #

This does not happen in 3.1.

Neil.



More information about the Gcc mailing list