http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48062
Summary: `shadowed declaration is here' should be a note
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: trivial
Priority: P3
Component: c
AssignedTo: [email protected]
ReportedBy: [email protected]
cat > main.c
int i;
int main(void)
{
int i = 0;
return i;
}
^D
$ gcc -Wshadow main.c
main.c: In function 'main':
main.c:5:7: warning: declaration of 'i' shadows a global declaration [-Wshadow]
main.c:1:5: warning: shadowed declaration is here [-Wshadow]