This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix -Wshadow=local warnings in passes.c
On Mon, Oct 07, 2019 at 05:11:27PM +0000, Bernd Edlinger wrote:
> On 10/7/19 9:20 AM, Eric Botcazou wrote:
> > No, please, the cure would be much worse than the disease.
>
> Ack.
>
> I think the least worse thing would be a pragma in the macro where the shadowing
> variable is declared...
The best thing would be to write this in a way that nothing *can*
accidentally shadow something.
Segher