annoying -Wshadow warning

Doug Evans dje@transmeta.com
Tue Jul 9 12:07:00 GMT 2002


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?



More information about the Gcc-bugs mailing list