This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
-Wshadow buglet?
- To: gcc-bugs at gcc dot gnu dot org
- Subject: -Wshadow buglet?
- From: "Andrew Morton" <morton at nortelnetworks dot com>
- Date: Tue, 22 Feb 2000 22:34:25 +1100
- Organization: Nortel Networks, Wollongong Australia
bix:~> cat t.c
int foo;
bar()
{
extern int foo;
}
bix:~> gcc -v
Reading specs from /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.96/specs
gcc version 2.96 20000221 (experimental)
bix:~> gcc -Wshadow -c t.c
t.c: In function `bar':
t.c:5: warning: declaration of `foo' shadows global declaration