diff options
author | Andrey Smirnov <ndreys@sourceware.org> | 2011-12-11 02:27:24 +0000 |
---|---|---|
committer | Andrey Smirnov <ndreys@sourceware.org> | 2011-12-11 02:27:24 +0000 |
commit | e5e61bd728a2088867aaaca57c139965d1b47915 (patch) | |
tree | fc40e26b48b634a368b2f6b691ebffcccadc43df /gdb/ada-exp.y | |
parent | b4082c70007bc92982af478df267643b662bf19d (diff) | |
download | gdb-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.y | 6 |
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); |