From dc4024cd3faf98ec21df93dabdf911c5fbe25264 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Thu, 29 Mar 2012 23:29:19 +0000 Subject: [PATCH] Fix -Wshadow warning in ada-lang.c:ada_lookup_simple_minsym 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 | 7 +++++++ gdb/ada-lang.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 97aba93c6a7..18c9dfd4333 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2012-03-29 Joel Brobecker + Andrey Smirnov + + -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 Andrey Smirnov diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 146401ea4b6..1d108aff778 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -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; } -- 2.30.2