This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 048/238] [index] cp-abi.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:51 -0800
- Subject: [PATCH 048/238] [index] cp-abi.c: -Wshadow fix
- References: <1323747545-29987-1-git-send-email-andrew.smirnov@gmail.com>
To ChangeLog:
* cp-abi.c (baseclass_offset): Rename `index' to `idx'(-Wshadow).
---
gdb/cp-abi.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdb/cp-abi.c b/gdb/cp-abi.c
index 82a164e..9ff49f9 100644
--- a/gdb/cp-abi.c
+++ b/gdb/cp-abi.c
@@ -70,7 +70,7 @@ is_operator_name (const char *name)
}
int
-baseclass_offset (struct type *type, int index, const gdb_byte *valaddr,
+baseclass_offset (struct type *type, int idx, const gdb_byte *valaddr,
int embedded_offset, CORE_ADDR address,
const struct value *val)
{
@@ -81,7 +81,7 @@ baseclass_offset (struct type *type, int index, const gdb_byte *valaddr,
TRY_CATCH (ex, RETURN_MASK_ERROR)
{
- res = (*current_cp_abi.baseclass_offset) (type, index, valaddr,
+ res = (*current_cp_abi.baseclass_offset) (type, idx, valaddr,
embedded_offset,
address, val);
}
--
1.7.5.4