[PATCH 053/238] [index] parse.c: -Wshadow fix
Andrey Smirnov
andrew.smirnov@gmail.com
Tue Dec 13 03:47:00 GMT 2011
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
More information about the Gdb-patches
mailing list