This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] invoke.texi about -Wshadow
- To: gcc-patches at gcc dot gnu dot org
- Subject: [PATCH] invoke.texi about -Wshadow
- From: Jakub Jelinek <jakub at redhat dot com>
- Date: Wed, 21 Mar 2001 13:53:33 +0100
- Reply-To: Jakub Jelinek <jakub at redhat dot com>
Hi!
invoke.texi only speaks that -Wshadow warns about local variable shadowing
another local variable, which is only one thing about which warn_shadow
warns.
Ok to commit?
Not bootstrapped yet ;)
2001-03-21 Jakub Jelinek <jakub@redhat.com>
* invoke.texi (-Wshadow): Clarify.
--- gcc/invoke.texi.jj Mon Mar 12 11:45:08 2001
+++ gcc/invoke.texi Wed Mar 21 14:54:08 2001
@@ -2128,7 +2128,8 @@ traditional C case.
Warn if an undefined identifier is evaluated in an @samp{#if} directive.
@item -Wshadow
-Warn whenever a local variable shadows another local variable.
+Warn whenever a local variable shadows another local variable, parameter or
+global variable or whenever a built-in function is shadowed.
@item -Wid-clash-@var{len}
Warn whenever two distinct identifiers match in the first @var{len}
Jakub