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


To ChangeLog:
	* gdbtypes.c (get_array_bounds): Rename `index' to `idx'(-Wshadow).
---
 gdb/gdbtypes.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index d0cb678..f0a0e59 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -843,15 +843,15 @@ get_discrete_bounds (struct type *type, LONGEST *lowp, LONGEST *highp)
 int
 get_array_bounds (struct type *type, LONGEST *low_bound, LONGEST *high_bound)
 {
-  struct type *index = TYPE_INDEX_TYPE (type);
+  struct type *idx = TYPE_INDEX_TYPE (type);
   LONGEST low = 0;
   LONGEST high = 0;
   int res;
 
-  if (index == NULL)
+  if (idx == NULL)
     return 0;
 
-  res = get_discrete_bounds (index, &low, &high);
+  res = get_discrete_bounds (idx, &low, &high);
   if (res == -1)
     return 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]