aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2011-11-23 19:54:08 +0000
committerJoel Brobecker <brobecker@gnat.com>2011-11-23 19:54:08 +0000
commitd984108d931ea74b1435620edb15f087f0c257c2 (patch)
tree625efa68083c504faa4cb2864bd74abf89747908 /gdb
parent18af828477ee67ca2aafdec98d16107a2d792d66 (diff)
downloadgdb-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')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/ada-lang.c2
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3bb6d51..ea8fb66 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
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;