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 31/348] Fix -Wsahdow warnings


>>>>> "Andrey" == Andrey Smirnov <andrew.smirnov@gmail.com> writes:

Andrey> * breakpoint.c (create_breakpoint): Fix -Wshadow
Andrey> warnings.

Andrey>    if (type_wanted == bp_static_tracepoint && is_marker_spec (arg))
Andrey>      {
Andrey> -      int i;
Andrey> +
 
Andrey>        sals = decode_static_tracepoint_spec (&arg);
 
If you remove the last declaration, I think you should remove the blank
line that separates declarations from code as well.

Otherwise ok.

Tom


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