forked from Imagelibrary/binutils-gdb
fix -Wshadow warning inside ada-lang.c:assign_aggregate
gdb/ChangeLog:
From Andrey Smirnov <andrew.smirnov@gmail.com>:
* ada-lang.c (assign_aggregate): Remove declaration of local
variable `i' which is shadowing another variable with the same
name declared in the outer scope.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
|
||||
|
||||
* ada-lang.c (assign_aggregate): Remove declaration of local
|
||||
variable `i' which is shadowing another variable with the same
|
||||
name declared in the outer scope.
|
||||
|
||||
2011-11-23 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* ada-lang.c (get_base_type): Renames base_type. Adjust all
|
||||
|
||||
@@ -8665,8 +8665,6 @@ assign_aggregate (struct value *container,
|
||||
*pos += 3;
|
||||
if (noside != EVAL_NORMAL)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < n; i += 1)
|
||||
ada_evaluate_subexp (NULL, exp, pos, noside);
|
||||
return container;
|
||||
|
||||
Reference in New Issue
Block a user