[PATCH 061/238] [index] wrapper.c: -Wshadow fix

Andrey Smirnov andrew.smirnov@gmail.com
Tue Dec 13 03:48:00 GMT 2011


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



More information about the Gdb-patches mailing list