aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-exp.y
diff options
context:
space:
mode:
authorAndrey Smirnov <ndreys@sourceware.org>2011-12-11 02:27:24 +0000
committerAndrey Smirnov <ndreys@sourceware.org>2011-12-11 02:27:24 +0000
commite5e61bd728a2088867aaaca57c139965d1b47915 (patch)
treefc40e26b48b634a368b2f6b691ebffcccadc43df /gdb/ada-exp.y
parentb4082c70007bc92982af478df267643b662bf19d (diff)
downloadgdb-e5e61bd728a2088867aaaca57c139965d1b47915.zip
gdb-e5e61bd728a2088867aaaca57c139965d1b47915.tar.gz
gdb-e5e61bd728a2088867aaaca57c139965d1b47915.tar.bz2
* ada-exp.y (write_var_or_type): Rename nested `renaming' to
`ren_sym'(-Wshadow).
Diffstat (limited to 'gdb/ada-exp.y')
-rw-r--r--gdb/ada-exp.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y
index 9576be5e..bfa3913 100644
--- a/gdb/ada-exp.y
+++ b/gdb/ada-exp.y
@@ -1287,12 +1287,12 @@ write_var_or_type (struct block *block, struct stoken name0)
FIXME pnh 7/20/2007. */
if (nsyms == 1)
{
- struct symbol *renaming =
+ struct symbol *ren_sym =
ada_find_renaming_symbol (SYMBOL_LINKAGE_NAME (syms[0].sym),
syms[0].block);
- if (renaming != NULL)
- syms[0].sym = renaming;
+ if (ren_sym != NULL)
+ syms[0].sym = ren_sym;
}
type_sym = select_possible_type_sym (syms, nsyms);