This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Wshadow Problem
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- To: Soubhik <soubhik at noida dot atrenta dot com>
- Cc: GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Wed, 20 Feb 2002 07:18:11 +0000
- Subject: Re: Wshadow Problem
- References: <3C733BA8.D11016D5@noida.atrenta.com>
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.