From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10849 invoked by alias); 22 Nov 2011 13:03:33 -0000 Received: (qmail 10838 invoked by uid 22791); 22 Nov 2011 13:03:32 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-fx0-f41.google.com (HELO mail-fx0-f41.google.com) (209.85.161.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 22 Nov 2011 13:03:20 +0000 Received: by faas10 with SMTP id s10so453737faa.0 for ; Tue, 22 Nov 2011 05:03:19 -0800 (PST) Received: by 10.204.155.141 with SMTP id s13mr19325732bkw.40.1321966998867; Tue, 22 Nov 2011 05:03:18 -0800 (PST) Received: from bulbasaur (l49-9-169.cn.ru. [178.49.9.169]) by mx.google.com with ESMTPS id z15sm10027650bkv.4.2011.11.22.05.03.15 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 22 Nov 2011 05:03:16 -0800 (PST) From: Andrey Smirnov To: gdb-patches@sourceware.org Subject: [PATCH 21/348] Fix -Wsahdow warnings Date: Tue, 22 Nov 2011 13:03:00 -0000 Message-ID: <87aa7o8g33.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/x-diff Content-Disposition: inline; filename=0021-Fix-Wshadow-warnings.patch Content-Description: Fix -Wshadow warnings X-IsSubscribed: yes 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/msg00556.txt.bz2 >From d17a56836ea91af85e584c7cfb467179345c46d3 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Tue, 22 Nov 2011 17:32:48 +0700 Subject: [PATCH 21/39] Fix -Wshadow warnings. * annotate.c (annotate_array_section_begin): Fix -Wshadow warnings. --- gdb/ChangeLog | 5 +++++ gdb/annotate.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4daf760..f6711e4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2011-11-22 Andrey Smirnov + * annotate.c (annotate_array_section_begin): Fix -Wshadow + warnings. + +2011-11-22 Andrey Smirnov + * amd64-tdep.c (amd64_push_dummy_call): Fix -Wshadow warnings. 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