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 061/238] [index] wrapper.c: -Wshadow fix


To ChangeLog:
	* wrapper.c (gdb_value_subscript): Rename `index' to `idx'(-Wshadow).
---
 gdb/wrapper.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gdb/wrapper.c b/gdb/wrapper.c
index 951e672..8cd0e92 100644
--- a/gdb/wrapper.c
+++ b/gdb/wrapper.c
@@ -101,14 +101,14 @@ gdb_value_assign (struct value *val1, struct value *val2,
 }
 
 int
-gdb_value_subscript (struct value *val, LONGEST index,
+gdb_value_subscript (struct value *val, LONGEST idx,
 		     struct value **result)
 {
   volatile struct gdb_exception except;
 
   TRY_CATCH (except, RETURN_MASK_ERROR)
     {
-      *result = value_subscript (val, index);
+      *result = value_subscript (val, idx);
     }
 
   if (except.reason < 0)
-- 
1.7.5.4


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