This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 33/348] Fix -Wsahdow warnings


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]