This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: is '-Wshadow' too chatty?
- To: Eyal Lebedinsky <eyal at eyal dot emu dot id dot au>
- Subject: Re: is '-Wshadow' too chatty?
- From: Jason Merrill <jason at redhat dot com>
- Date: 30 Dec 2000 15:22:37 +0000
- Cc: gcc-patches list <gcc-patches at gcc dot gnu dot org>
- References: <3A49C5D8.DD8582E2@eyal.emu.id.au>
>>>>> "Eyal" == Eyal Lebedinsky <eyal@eyal.emu.id.au> writes:
> These -Wshadow warnings are very usefull, I started using it now.
> A problem that I see is that it produces diagnostics even inside
> a function declaration prototype. The fact is that there is no
> risk is such shadowing since the argument names (optional in a
> declaration) go out of scope at the end of the declaration.
> I suggest the diagnostic be supressed in this situation. Does this
> sound proper?
Makes sense to me.
Jason