This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 053/238] [index] parse.c: -Wshadow fix


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]