From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8892 invoked by alias); 13 Dec 2011 03:41:18 -0000 Received: (qmail 8860 invoked by uid 22791); 13 Dec 2011 03:41:15 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-iy0-f169.google.com (HELO mail-iy0-f169.google.com) (209.85.210.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Dec 2011 03:40:57 +0000 Received: by iahk25 with SMTP id k25so11422575iah.0 for ; Mon, 12 Dec 2011 19:40:57 -0800 (PST) Received: by 10.50.184.230 with SMTP id ex6mr18026213igc.78.1323747657415; Mon, 12 Dec 2011 19:40:57 -0800 (PST) Received: from localhost.localdomain (c-24-18-115-186.hsd1.wa.comcast.net. [24.18.115.186]) by mx.google.com with ESMTPS id e2sm81168651ibe.0.2011.12.12.19.40.56 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Dec 2011 19:40:57 -0800 (PST) From: Andrey Smirnov To: gdb-patches@sourceware.org Cc: Andrey Smirnov Subject: [PATCH 038/238] [index] gdbtypes.c: -Wshadow fix Date: Tue, 13 Dec 2011 03:41:00 -0000 Message-Id: <1323747545-29987-4-git-send-email-andrew.smirnov@gmail.com> In-Reply-To: <1323747545-29987-1-git-send-email-andrew.smirnov@gmail.com> References: <1323747545-29987-1-git-send-email-andrew.smirnov@gmail.com> 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-12/txt/msg00364.txt.bz2 To ChangeLog: * gdbtypes.c (get_array_bounds): Rename `index' to `idx'(-Wshadow). --- gdb/gdbtypes.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index d0cb678..f0a0e59 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -843,15 +843,15 @@ get_discrete_bounds (struct type *type, LONGEST *lowp, LONGEST *highp) int get_array_bounds (struct type *type, LONGEST *low_bound, LONGEST *high_bound) { - struct type *index = TYPE_INDEX_TYPE (type); + struct type *idx = TYPE_INDEX_TYPE (type); LONGEST low = 0; LONGEST high = 0; int res; - if (index == NULL) + if (idx == NULL) return 0; - res = get_discrete_bounds (index, &low, &high); + res = get_discrete_bounds (idx, &low, &high); if (res == -1) return 0; -- 1.7.5.4