From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9710 invoked by alias); 13 Dec 2011 03:41:24 -0000 Received: (qmail 9531 invoked by uid 22791); 13 Dec 2011 03:41:23 -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:41:10 +0000 Received: by mail-iy0-f169.google.com with SMTP id k25so11421845iah.0 for ; Mon, 12 Dec 2011 19:41:10 -0800 (PST) Received: by 10.42.244.137 with SMTP id lq9mr14241647icb.28.1323747670121; Mon, 12 Dec 2011 19:41:10 -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.41.09 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Dec 2011 19:41:09 -0800 (PST) From: Andrey Smirnov To: gdb-patches@sourceware.org Cc: Andrey Smirnov Subject: [PATCH 041/238] [index] f-typeprint.c: -Wshadow fix Date: Tue, 13 Dec 2011 03:41:00 -0000 Message-Id: <1323747545-29987-7-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/msg00365.txt.bz2 To ChangeLog: * f-typeprint.c (f_type_print_base): Rename `index' to `idx'(-Wshadow). --- gdb/f-typeprint.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gdb/f-typeprint.c b/gdb/f-typeprint.c index 6d9e6ec..aaf221f 100644 --- a/gdb/f-typeprint.c +++ b/gdb/f-typeprint.c @@ -259,7 +259,7 @@ f_type_print_base (struct type *type, struct ui_file *stream, int show, int level) { int upper_bound; - int index; + int idx; QUIT; @@ -352,13 +352,13 @@ f_type_print_base (struct type *type, struct ui_file *stream, int show, fprintfi_filtered (level, stream, "Type "); fputs_filtered (TYPE_TAG_NAME (type), stream); fputs_filtered ("\n", stream); - for (index = 0; index < TYPE_NFIELDS (type); index++) + for (idx = 0; idx < TYPE_NFIELDS (type); idx++) { - f_type_print_base (TYPE_FIELD_TYPE (type, index), stream, show, + f_type_print_base (TYPE_FIELD_TYPE (type, idx), stream, show, level + 4); fputs_filtered (" :: ", stream); - fputs_filtered (TYPE_FIELD_NAME (type, index), stream); - f_type_print_varspec_suffix (TYPE_FIELD_TYPE (type, index), + fputs_filtered (TYPE_FIELD_NAME (type, idx), stream); + f_type_print_varspec_suffix (TYPE_FIELD_TYPE (type, idx), stream, 0, 0, 0, 0); fputs_filtered ("\n", stream); } -- 1.7.5.4