From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: andrew.smirnov@gmail.com
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 21/348] Fix -Wsahdow warnings
Date: Wed, 23 Nov 2011 16:41:00 -0000 [thread overview]
Message-ID: <201111231640.pANGecBD030619@glazunov.sibelius.xs4all.nl> (raw)
In-Reply-To: <87aa7o8g33.fsf@gmail.com> (message from Andrey Smirnov on Tue, 22 Nov 2011 20:03:12 +0700)
> 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)
> }
> \f
> 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
>
>
next prev parent reply other threads:[~2011-11-23 16:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-22 13:03 Andrey Smirnov
2011-11-22 18:07 ` Tom Tromey
2011-11-23 16:41 ` Mark Kettenis [this message]
2011-11-23 16:57 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201111231640.pANGecBD030619@glazunov.sibelius.xs4all.nl \
--to=mark.kettenis@xs4all.nl \
--cc=andrew.smirnov@gmail.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox