This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 053/238] [index] parse.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:56 -0800
- Subject: [PATCH 053/238] [index] parse.c: -Wshadow fix
- References: <1323747545-29987-1-git-send-email-andrew.smirnov@gmail.com>
To ChangeLog:
* parse.c (write_exp_elt_decfloatcst): Rename `index' to `idx'(-Wshadow).
---
gdb/parse.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/gdb/parse.c b/gdb/parse.c
index 7d157fe..9ae8311 100644
--- a/gdb/parse.c
+++ b/gdb/parse.c
@@ -275,10 +275,10 @@ void
write_exp_elt_decfloatcst (gdb_byte expelt[16])
{
union exp_element tmp;
- int index;
+ int idx;
- for (index = 0; index < 16; index++)
- tmp.decfloatconst[index] = expelt[index];
+ for (idx = 0; idx < 16; idx++)
+ tmp.decfloatconst[idx] = expelt[idx];
write_exp_elt (&tmp);
}
--
1.7.5.4