This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: annoying -Wshadow warning
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- To: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Cc: Doug Evans <dje at transmeta dot com>, <gcc-bugs at gcc dot gnu dot org>
- Date: 10 Jul 2002 12:20:36 +0200
- Subject: Re: annoying -Wshadow warning
- Organization: CodeSourcery, LLC
- References: <Pine.LNX.4.33.0207092255270.14261-100000@kern.srcf.societies.cam.ac.uk>
"Joseph S. Myers" <jsm28@cam.ac.uk> writes:
| On Tue, 9 Jul 2002, Doug Evans wrote:
|
| > True. In the meantime, if everyone is agreed this particular
| > variant of the warning contributes no value, can we remove it?
|
| Doing it properly means adding extra code to keep the warning in the
| special case (where the parameter name is used within its scope) where it
| is useful.
I guess by properly, we meant dealiing with the exceptional case you
mentioned earlier. Right?
-- Gaby