This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
annoying -Wshadow warning
- From: Doug Evans <dje at transmeta dot com>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 9 Jul 2002 12:02:39 -0700
- Subject: annoying -Wshadow warning
Is there any usefulness to this particular situation of the -Wshadow warning?
foo.c:
void debug (void);
void foo (char* debug);
casey:~$ gcc-3.0.4 -c -Wshadow foo.c
foo.c:2: warning: declaration of `debug' shadows global declaration
casey:~$
Print the warning at the definition site of foo, yes!
But at the prototype site?