* ada-lang.c (remove_extra_symbols): Rename `remove' to
authorAndrey Smirnov <ndreys@sourceware.org>
Sun, 11 Dec 2011 02:31:04 +0000 (02:31 +0000)
committerAndrey Smirnov <ndreys@sourceware.org>
Sun, 11 Dec 2011 02:31:04 +0000 (02:31 +0000)
`remove_p'(-Wshadow).

gdb/ChangeLog
gdb/ada-lang.c

index 4e3edce4c2cbc1fc5cf0b56f75dfa9c079cb5e6d..d02a3dbd09c5ed0f277ffd77d590ed76e058b0b7 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
+
+       * ada-lang.c (remove_extra_symbols): Rename `remove' to
+       `remove_p'(-Wshadow).
+
 2011-12-10  Andrey Smirnov  <andrew.smirnov@gmail.com>
 
        * ada-exp.y (write_var_or_type): Rename nested `renaming' to
index 3843539d260ae62db67222c7d3a0f123013c770e..d32d3161125c6b6646b75bd0b8c859f755a248a3 100644 (file)
@@ -4488,7 +4488,7 @@ remove_extra_symbols (struct ada_symbol_info *syms, int nsyms)
   i = 0;
   while (i < nsyms)
     {
-      int remove = 0;
+      int remove_p = 0;
 
       /* If two symbols have the same name and one of them is a stub type,
          the get rid of the stub.  */
@@ -4503,7 +4503,7 @@ remove_extra_symbols (struct ada_symbol_info *syms, int nsyms)
                   && SYMBOL_LINKAGE_NAME (syms[j].sym) != NULL
                   && strcmp (SYMBOL_LINKAGE_NAME (syms[i].sym),
                              SYMBOL_LINKAGE_NAME (syms[j].sym)) == 0)
-                remove = 1;
+                remove_p = 1;
             }
         }
 
@@ -4523,11 +4523,11 @@ remove_extra_symbols (struct ada_symbol_info *syms, int nsyms)
                   && SYMBOL_CLASS (syms[i].sym) == SYMBOL_CLASS (syms[j].sym)
                   && SYMBOL_VALUE_ADDRESS (syms[i].sym)
                   == SYMBOL_VALUE_ADDRESS (syms[j].sym))
-                remove = 1;
+                remove_p = 1;
             }
         }
       
-      if (remove)
+      if (remove_p)
         {
           for (j = i + 1; j < nsyms; j += 1)
             syms[j - 1] = syms[j];