diff options
author | Andrey Smirnov <ndreys@sourceware.org> | 2011-12-11 02:31:04 +0000 |
---|---|---|
committer | Andrey Smirnov <ndreys@sourceware.org> | 2011-12-11 02:31:04 +0000 |
commit | a35ddb4476da3a002ea623ad3e1ac72821f9f0be (patch) | |
tree | 58bce8ddd69834196e183d2b70190167198b1beb /gdb/ada-lang.c | |
parent | e5e61bd728a2088867aaaca57c139965d1b47915 (diff) | |
download | gdb-a35ddb4476da3a002ea623ad3e1ac72821f9f0be.zip gdb-a35ddb4476da3a002ea623ad3e1ac72821f9f0be.tar.gz gdb-a35ddb4476da3a002ea623ad3e1ac72821f9f0be.tar.bz2 |
* ada-lang.c (remove_extra_symbols): Rename `remove' to
`remove_p'(-Wshadow).
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 3843539..d32d316 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -4488,7 +4488,7 @@ remove_extra_symbols (struct ada_symbol_info *syms, int nsyms) i = 0; while (i < nsyms) { - int remove = 0; + int remove_p = 0; /* If two symbols have the same name and one of them is a stub type, the get rid of the stub. */ @@ -4503,7 +4503,7 @@ remove_extra_symbols (struct ada_symbol_info *syms, int nsyms) && SYMBOL_LINKAGE_NAME (syms[j].sym) != NULL && strcmp (SYMBOL_LINKAGE_NAME (syms[i].sym), SYMBOL_LINKAGE_NAME (syms[j].sym)) == 0) - remove = 1; + remove_p = 1; } } @@ -4523,11 +4523,11 @@ remove_extra_symbols (struct ada_symbol_info *syms, int nsyms) && SYMBOL_CLASS (syms[i].sym) == SYMBOL_CLASS (syms[j].sym) && SYMBOL_VALUE_ADDRESS (syms[i].sym) == SYMBOL_VALUE_ADDRESS (syms[j].sym)) - remove = 1; + remove_p = 1; } } - if (remove) + if (remove_p) { for (j = i + 1; j < nsyms; j += 1) syms[j - 1] = syms[j]; |