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