From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9581 invoked by alias); 22 Nov 2011 13:01:49 -0000 Received: (qmail 9573 invoked by uid 22791); 22 Nov 2011 13:01:48 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_EG X-Spam-Check-By: sourceware.org Received: from mail-bw0-f41.google.com (HELO mail-bw0-f41.google.com) (209.85.214.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 22 Nov 2011 13:01:31 +0000 Received: by bke17 with SMTP id 17so222217bke.0 for ; Tue, 22 Nov 2011 05:01:29 -0800 (PST) Received: by 10.205.132.146 with SMTP id hu18mr18544131bkc.123.1321966889421; Tue, 22 Nov 2011 05:01:29 -0800 (PST) Received: from bulbasaur (l49-9-169.cn.ru. [178.49.9.169]) by mx.google.com with ESMTPS id e8sm10017451bkd.7.2011.11.22.05.01.21 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 22 Nov 2011 05:01:22 -0800 (PST) From: Andrey Smirnov To: gdb-patches@sourceware.org Subject: [PATCH 18/348] Fix -Wsahdow warnings Date: Tue, 22 Nov 2011 13:01:00 -0000 Message-ID: <87ehx08g69.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/x-diff Content-Disposition: inline; filename=0018-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/msg00553.txt.bz2 >From 6347add7f352c5e9994f7a5de938e8a7dacc98f9 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Tue, 22 Nov 2011 17:25:56 +0700 Subject: [PATCH 18/39] Fix -Wshadow warnings. * amd64-linux-tdep.c (amd64_canonicalize_syscall): Fix -Wshadow warnings. --- gdb/ChangeLog | 5 +++++ gdb/amd64-linux-tdep.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 54284cf..7f049a8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-11-22 Andrey Smirnov + + * amd64-linux-tdep.c (amd64_canonicalize_syscall): Fix -Wshadow + warnings. + 2011-11-19 Andrey Smirnov * ada-valprint.c (ada_val_print_1): Fix -Wshadow warnings. diff --git a/gdb/amd64-linux-tdep.c b/gdb/amd64-linux-tdep.c index 0119838..84b58a0 100644 --- a/gdb/amd64-linux-tdep.c +++ b/gdb/amd64-linux-tdep.c @@ -339,9 +339,9 @@ amd64_all_but_ip_registers_record (struct regcache *regcache) process record. */ static enum gdb_syscall -amd64_canonicalize_syscall (enum amd64_syscall syscall) +amd64_canonicalize_syscall (enum amd64_syscall syscall_number) { - switch (syscall) { + switch (syscall_number) { case amd64_sys_read: return gdb_sys_read; -- 1.7.5.4