* ada-exp.y (write_var_or_type): Rename nested `renaming' to

`ren_sym'(-Wshadow).
This commit is contained in:
Andrey Smirnov 2011-12-11 02:27:24 +00:00
parent b4082c7000
commit e5e61bd728
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
* ada-exp.y (write_var_or_type): Rename nested `renaming' to
`ren_sym'(-Wshadow).
2011-12-10 Doug Evans <dje@google.com>
* dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to

View File

@ -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);