aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2012-03-29 23:29:19 +0000
committerJoel Brobecker <brobecker@gnat.com>2012-03-29 23:29:19 +0000
commitdc4024cd3faf98ec21df93dabdf911c5fbe25264 (patch)
treec00874128300dd4033a4143ff27264e608bd61f6 /gdb/ada-lang.c
parenta66eed7a5dbef1ece41e565986c77659b7f1505f (diff)
downloadgdb-dc4024cd3faf98ec21df93dabdf911c5fbe25264.zip
gdb-dc4024cd3faf98ec21df93dabdf911c5fbe25264.tar.gz
gdb-dc4024cd3faf98ec21df93dabdf911c5fbe25264.tar.bz2
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.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r--gdb/ada-lang.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 146401e..1d108af 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;
}