mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
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:
@@ -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