This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 33/348] Fix -Wsahdow warnings
- From: Tom Tromey <tromey at redhat dot com>
- To: Andrey Smirnov <andrew dot smirnov at gmail dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 22 Nov 2011 12:11:39 -0700
- Subject: Re: [PATCH 33/348] Fix -Wsahdow warnings
- References: <87r51070ik.fsf@gmail.com>
>>>>> "Andrey" == Andrey Smirnov <andrew.smirnov@gmail.com> writes:
Andrey> * breakpoint.c (update_global_location_list): Fix -Wshadow
Andrey> warnings.
Andrey> - struct breakpoint *b = loc->owner;
Andrey> + struct breakpoint *bp = loc->owner;
I think in this case it is ok to just reuse the enclosing 'b'.
That is, just delete this declaration.
'b' is just used as an iterator in this function.
Tom