This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 7/348] Fix -Wshadow warnings
- From: Andrey Smirnov <andrew dot smirnov at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Sat, 19 Nov 2011 10:37:11 +0700
- Subject: [PATCH 7/348] Fix -Wshadow warnings
>From 73dafb431aab5653c1bc54a075db621109d58697 Mon Sep 17 00:00:00 2001
From: Andrey Smirnov <andrew.smirnov@gmail.com>
Date: Sat, 19 Nov 2011 09:34:30 +0700
Subject: [PATCH 07/18] Fix Wshadow
---
gdb/ChangeLog | 4 ++++
gdb/ada-lang.c | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a633c28..7499e45 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2011-11-19 Andrey Smirnov <andrew.smirnov@gmail.com>
+ * ada-lang.c (ada_index_struct_field): Fix -Wshadow warnings.
+
+2011-11-19 Andrey Smirnov <andrew.smirnov@gmail.com>
+
* ada-lang.c (find_old_style_renaming_symbol): Fix -Wshadow
warnings.
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index cc0513c..d73e314 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -6450,10 +6450,10 @@ static struct value *ada_index_struct_field_1 (int *, struct value *,
* If found, return value, else return NULL. */
static struct value *
-ada_index_struct_field (int index, struct value *arg, int offset,
+ada_index_struct_field (int idx, struct value *arg, int offset,
struct type *type)
{
- return ada_index_struct_field_1 (&index, arg, offset, type);
+ return ada_index_struct_field_1 (&idx, arg, offset, type);
}
--
1.7.5.4