[PATCH 041/238] [index] f-typeprint.c: -Wshadow fix
Andrey Smirnov
andrew.smirnov@gmail.com
Tue Dec 13 03:41:00 GMT 2011
To ChangeLog:
* f-typeprint.c (f_type_print_base): Rename `index' to
`idx'(-Wshadow).
---
gdb/f-typeprint.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/gdb/f-typeprint.c b/gdb/f-typeprint.c
index 6d9e6ec..aaf221f 100644
--- a/gdb/f-typeprint.c
+++ b/gdb/f-typeprint.c
@@ -259,7 +259,7 @@ f_type_print_base (struct type *type, struct ui_file *stream, int show,
int level)
{
int upper_bound;
- int index;
+ int idx;
QUIT;
@@ -352,13 +352,13 @@ f_type_print_base (struct type *type, struct ui_file *stream, int show,
fprintfi_filtered (level, stream, "Type ");
fputs_filtered (TYPE_TAG_NAME (type), stream);
fputs_filtered ("\n", stream);
- for (index = 0; index < TYPE_NFIELDS (type); index++)
+ for (idx = 0; idx < TYPE_NFIELDS (type); idx++)
{
- f_type_print_base (TYPE_FIELD_TYPE (type, index), stream, show,
+ f_type_print_base (TYPE_FIELD_TYPE (type, idx), stream, show,
level + 4);
fputs_filtered (" :: ", stream);
- fputs_filtered (TYPE_FIELD_NAME (type, index), stream);
- f_type_print_varspec_suffix (TYPE_FIELD_TYPE (type, index),
+ fputs_filtered (TYPE_FIELD_NAME (type, idx), stream);
+ f_type_print_varspec_suffix (TYPE_FIELD_TYPE (type, idx),
stream, 0, 0, 0, 0);
fputs_filtered ("\n", stream);
}
--
1.7.5.4
More information about the Gdb-patches
mailing list