From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27401 invoked by alias); 23 Nov 2011 16:41:06 -0000 Received: (qmail 27335 invoked by uid 22791); 23 Nov 2011 16:41:05 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO glazunov.sibelius.xs4all.nl) (83.163.83.176) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 23 Nov 2011 16:40:44 +0000 Received: from glazunov.sibelius.xs4all.nl (kettenis@localhost [127.0.0.1]) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3) with ESMTP id pANGeeTQ009805; Wed, 23 Nov 2011 17:40:40 +0100 (CET) Received: (from kettenis@localhost) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3/Submit) id pANGecBD030619; Wed, 23 Nov 2011 17:40:38 +0100 (CET) Date: Wed, 23 Nov 2011 16:41:00 -0000 Message-Id: <201111231640.pANGecBD030619@glazunov.sibelius.xs4all.nl> From: Mark Kettenis To: andrew.smirnov@gmail.com CC: gdb-patches@sourceware.org In-reply-to: <87aa7o8g33.fsf@gmail.com> (message from Andrey Smirnov on Tue, 22 Nov 2011 20:03:12 +0700) Subject: Re: [PATCH 21/348] Fix -Wsahdow warnings References: <87aa7o8g33.fsf@gmail.com> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-11/txt/msg00620.txt.bz2 > From: Andrey Smirnov > 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 > >