This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 056/238] [index] symtab.c: -Wshadow fix
- From: Andrey Smirnov <andrew dot smirnov at gmail dot com>
- To: gdb-patches at sourceware dot org
- Cc: Andrey Smirnov <andrew dot smirnov at gmail dot com>
- Date: Mon, 12 Dec 2011 19:38:59 -0800
- Subject: [PATCH 056/238] [index] symtab.c: -Wshadow fix
- References: <1323747545-29987-1-git-send-email-andrew.smirnov@gmail.com>
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