From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11265 invoked by alias); 13 Dec 2011 03:41:38 -0000 Received: (qmail 11206 invoked by uid 22791); 13 Dec 2011 03:41:37 -0000 X-SWARE-Spam-Status: No, hits=-2.7 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-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:24 +0000 Received: by mail-iy0-f169.google.com with SMTP id k25so11421845iah.0 for ; Mon, 12 Dec 2011 19:41:24 -0800 (PST) Received: by 10.50.17.165 with SMTP id p5mr17488850igd.84.1323747684307; Mon, 12 Dec 2011 19:41:24 -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.23 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Dec 2011 19:41:24 -0800 (PST) From: Andrey Smirnov To: gdb-patches@sourceware.org Cc: Andrey Smirnov Subject: [PATCH 056/238] [index] symtab.c: -Wshadow fix Date: Tue, 13 Dec 2011 03:41:00 -0000 Message-Id: <1323747545-29987-22-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/msg00369.txt.bz2 To ChangeLog: * symtab.c (find_line_symtab): Rename `index' to `idx'(-Wshadow). --- gdb/symtab.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gdb/symtab.c b/gdb/symtab.c index 3d94e6b..f972eeb 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -2182,7 +2182,7 @@ find_pc_line (CORE_ADDR pc, int notcurrent) struct symtab * find_line_symtab (struct symtab *symtab, int line, - int *index, int *exact_match) + int *idx, int *exact_match) { int exact = 0; /* Initialized here to avoid a compiler warning. */ @@ -2265,8 +2265,8 @@ done: if (best_index < 0) return NULL; - if (index) - *index = best_index; + if (idx) + *idx = best_index; if (exact_match) *exact_match = exact; -- 1.7.5.4