This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 3/348] Fix -Wshadow warnings


>From c8c2755cd978e750070a6d8128ee44742e11432e Mon Sep 17 00:00:00 2001
From: Andrey Smirnov <andrew.smirnov@gmail.com>
Date: Sat, 19 Nov 2011 09:07:55 +0700
Subject: [PATCH 03/18] Fix -Wshadow warnings

---
 gdb/ChangeLog  |    4 ++++
 gdb/ada-lang.c |    8 ++++----
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b01c29d..58501e9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
 2011-11-19  Andrey Smirnov <andrew.smirnov@gmail.com>
 
+	* ada-lang.c (to_fixed_range_type): Fix -Wshadow warnings.
+
+2011-11-19  Andrey Smirnov <andrew.smirnov@gmail.com>
+
 	* ada-lang.c (thin_descriptor_type): Fix -Wshadow warnings.
 
 2011-11-19  Andrey Smirnov <andrew.smirnov@gmail.com>
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index da4cf3e..b7d1103 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -10345,16 +10345,16 @@ static struct type *
 to_fixed_range_type (struct type *raw_type, struct value *dval)
 {
   char *name;
-  struct type *base_type;
+  struct type *btype;
   char *subtype_info;
 
   gdb_assert (raw_type != NULL);
   gdb_assert (TYPE_NAME (raw_type) != NULL);
 
   if (TYPE_CODE (raw_type) == TYPE_CODE_RANGE)
-    base_type = TYPE_TARGET_TYPE (raw_type);
+    btype = TYPE_TARGET_TYPE (raw_type);
   else
-    base_type = raw_type;
+    btype = raw_type;
 
   name = TYPE_NAME (raw_type);
   subtype_info = strstr (name, "___XD");
@@ -10431,7 +10431,7 @@ to_fixed_range_type (struct type *raw_type, struct value *dval)
             }
         }
 
-      type = create_range_type (alloc_type_copy (raw_type), base_type, L, U);
+      type = create_range_type (alloc_type_copy (raw_type), btype, L, U);
       TYPE_NAME (type) = name;
       return type;
     }
-- 
1.7.5.4


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]