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


> From: Andrey Smirnov <andrew.smirnov@gmail.com>
> Date: Tue, 22 Nov 2011 20:03:12 +0700
> 
> * annotate.c (annotate_array_section_begin): Fix -Wshadow
> warnings.

Again, why does -Wshadow complain about this?

> diff --git a/gdb/annotate.c b/gdb/annotate.c
> index 2f0769a..93c65a1 100644
> --- a/gdb/annotate.c
> +++ b/gdb/annotate.c
> @@ -522,11 +522,11 @@ annotate_frame_end (void)
>  }
>  
>  void
> -annotate_array_section_begin (int index, struct type *elttype)
> +annotate_array_section_begin (int idx, struct type *elttype)
>  {
>    if (annotation_level == 2)
>      {
> -      printf_filtered (("\n\032\032array-section-begin %d "), index);
> +      printf_filtered (("\n\032\032array-section-begin %d "), idx);
>        print_value_flags (elttype);
>        printf_filtered (("\n"));
>      }
> -- 
> 1.7.5.4
> 
> 


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