From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8461 invoked by alias); 28 Nov 2011 15:17:10 -0000 Received: (qmail 8446 invoked by uid 22791); 28 Nov 2011 15:17:08 -0000 X-SWARE-Spam-Status: No, hits=-2.4 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; Mon, 28 Nov 2011 15:16:55 +0000 Received: by faaa26 with SMTP id a26so276135faa.0 for ; Mon, 28 Nov 2011 07:16:53 -0800 (PST) Received: by 10.204.157.133 with SMTP id b5mr45046007bkx.121.1322493413687; Mon, 28 Nov 2011 07:16:53 -0800 (PST) Received: from localhost.localdomain (l49-9-169.cn.ru. [178.49.9.169]) by mx.google.com with ESMTPS id l5sm26752672bkv.9.2011.11.28.07.16.52 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 28 Nov 2011 07:16:53 -0800 (PST) From: Andrey Smirnov To: gdb-patches@sourceware.org Cc: tromey@redhat.com Subject: [PATCH 020/238] [misc.] amd64-tdep.: -Wshadow fix Date: Mon, 28 Nov 2011 15:17:00 -0000 Message-Id: <1322493396-29592-1-git-send-email-andrew.smirnov@gmail.com> In-Reply-To: References: 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/msg00758.txt.bz2 Cause: It is a ALBW type of clash, the first declaration of the variable is at the beginning of the function. To ChangeLog: * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition of `tdep'(-Wshadow). --- gdb/ChangeLog | 5 +++++ gdb/amd64-tdep.c | 1 - 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6dbac0d..6e1121d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2011-11-22 Andrey Smirnov + * amd64-tdep.c (amd64_push_dummy_call): Fix -Wshadow + warnings. + +2011-11-22 Andrey Smirnov + * amd64-tdep.c (amd64_get_unused_input_int_reg): Fix -Wshadow warnings. diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c index 29101a4..987f80d 100644 --- a/gdb/amd64-tdep.c +++ b/gdb/amd64-tdep.c @@ -878,7 +878,6 @@ amd64_push_dummy_call (struct gdbarch *gdbarch, struct value *function, /* Pass "hidden" argument". */ if (struct_return) { - struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); /* The "hidden" argument is passed throught the first argument register. */ const int arg_regnum = tdep->call_dummy_integer_regs[0]; -- 1.7.5.4