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]
Other format: [Raw text]

Re: Wshadow Problem


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.


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