diff options
author | Joel Brobecker <brobecker@gnat.com> | 2011-11-23 19:54:08 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2011-11-23 19:54:08 +0000 |
commit | d984108d931ea74b1435620edb15f087f0c257c2 (patch) | |
tree | 625efa68083c504faa4cb2864bd74abf89747908 /gdb/ada-lang.c | |
parent | 18af828477ee67ca2aafdec98d16107a2d792d66 (diff) | |
download | gdb-d984108d931ea74b1435620edb15f087f0c257c2.zip gdb-d984108d931ea74b1435620edb15f087f0c257c2.tar.gz gdb-d984108d931ea74b1435620edb15f087f0c257c2.tar.bz2 |
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.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 6676685..48073fb 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -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; |