[PATCH] invoke.texi about -Wshadow
Jakub Jelinek
jakub@redhat.com
Wed Mar 21 04:51:00 GMT 2001
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
More information about the Gcc-patches
mailing list