This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 21/348] Fix -Wsahdow warnings
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: andrew dot smirnov at gmail dot com
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 23 Nov 2011 17:40:38 +0100 (CET)
- Subject: Re: [PATCH 21/348] Fix -Wsahdow warnings
- References: <87aa7o8g33.fsf@gmail.com>
> 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
>
>