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 1/348] Fix -Wshadow warnings


Previously sent patch with corresponding ChangeLog entry added.

>From 17f0e31a7306567c4abd679d907aeb12e378ebde Mon Sep 17 00:00:00 2001
From: Andrey Smirnov <andrew.smirnov@gmail.com>
Date: Sat, 19 Nov 2011 08:45:14 +0700
Subject: [PATCH] Fix -Wshadow warnings

---
 gdb/ChangeLog |    4 ++++
 gdb/ada-exp.y |    6 +++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 393cdf0..951793c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2011-11-19  Andrey Smirnov <andrew.smirnov@gmail.com>
+
+	* ada-exp.y: Fix -Wshadow warnings.
+
 2011-11-18  Yao Qi  <yao@codesourcery.com>
 
 	* breakpoint.c (create_breakpoint): Produce query message according to
diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y
index 9576be5..bfa3913 100644
--- a/gdb/ada-exp.y
+++ b/gdb/ada-exp.y
@@ -1287,12 +1287,12 @@ write_var_or_type (struct block *block, struct stoken name0)
 	     FIXME pnh 7/20/2007. */
 	  if (nsyms == 1)
 	    {
-	      struct symbol *renaming =
+	      struct symbol *ren_sym =
 		ada_find_renaming_symbol (SYMBOL_LINKAGE_NAME (syms[0].sym), 
 					  syms[0].block);
 
-	      if (renaming != NULL)
-		syms[0].sym = renaming;
+	      if (ren_sym != NULL)
+		syms[0].sym = ren_sym;
 	    }
 
 	  type_sym = select_possible_type_sym (syms, nsyms);
-- 
1.7.5.4


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