Fix -Wshadow warning in ada-lang.c:ada_lookup_simple_minsym
authorJoel Brobecker <brobecker@gnat.com>
Thu, 29 Mar 2012 23:29:19 +0000 (23:29 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Thu, 29 Mar 2012 23:29:19 +0000 (23:29 +0000)
gdb/ChangeLog:

        -Wshadow warning fix.
        * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
        variable into wild_match_p.  Adjust code accordingly.

gdb/ChangeLog
gdb/ada-lang.c

index 97aba93c6a75b3c1f6ed84a0fd6ca5e388087978..18c9dfd4333a40e65f2dc7dd31aa0a91582fb223 100644 (file)
@@ -1,3 +1,10 @@
+2012-03-29  Joel Brobecker  <brobecker@adacore.com>
+           Andrey Smirnov  <andrew.smirnov@gmail.com>
+
+       -Wshadow warning fix.
+       * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
+       variable into wild_match_p.  Adjust code accordingly.
+
 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
            Andrey Smirnov  <andrew.smirnov@gmail.com>
 
index 146401ea4b612b45e4bf7280855194d0928bdf90..1d108aff77878a2be71cc3f530bb8c91f03cfe43 100644 (file)
@@ -4414,7 +4414,7 @@ ada_lookup_simple_minsym (const char *name)
 {
   struct objfile *objfile;
   struct minimal_symbol *msymbol;
-  const int wild_match = should_use_wild_match (name);
+  const int wild_match_p = should_use_wild_match (name);
 
   /* Special case: If the user specifies a symbol name inside package
      Standard, do a non-wild matching of the symbol name without
@@ -4428,7 +4428,7 @@ ada_lookup_simple_minsym (const char *name)
 
   ALL_MSYMBOLS (objfile, msymbol)
   {
-    if (match_name (SYMBOL_LINKAGE_NAME (msymbol), name, wild_match)
+    if (match_name (SYMBOL_LINKAGE_NAME (msymbol), name, wild_match_p)
         && MSYMBOL_TYPE (msymbol) != mst_solib_trampoline)
       return msymbol;
   }