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:
Joel Brobecker
2011-11-23 19:54:08 +00:00
parent 18af828477
commit d984108d93
2 changed files with 6 additions and 2 deletions

View File

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