This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 10/348] Fix -Wshadow warnings
- From: Andrey Smirnov <andrew dot smirnov at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Sat, 19 Nov 2011 10:39:52 +0700
- Subject: [PATCH 10/348] Fix -Wshadow warnings
>From 4afdcd312ae450ee7fd24fda4a5858334a980515 Mon Sep 17 00:00:00 2001
From: Andrey Smirnov <andrew.smirnov@gmail.com>
Date: Sat, 19 Nov 2011 09:53:38 +0700
Subject: [PATCH 10/18] Fix Wshadow
---
gdb/ChangeLog | 4 ++++
gdb/ada-lang.c | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7354c27..390a205 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2011-11-19 Andrey Smirnov <andrew.smirnov@gmail.com>
+ * ada-lang.c (symbol_completion_match): Fix -Wshadow warnings.
+
+2011-11-19 Andrey Smirnov <andrew.smirnov@gmail.com>
+
* ada-lang.c (symbol_completion_add): Fix -Wshadow warnings.
2011-11-19 Andrey Smirnov <andrew.smirnov@gmail.com>
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 5bdbc6b..8787754 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -5488,7 +5488,7 @@ ada_add_block_symbols (struct obstack *obstackp,
static const char *
symbol_completion_match (const char *sym_name,
const char *text, int text_len,
- int wild_match, int encoded)
+ int wild_mode_flag, int encoded)
{
const int verbatim_match = (text[0] == '<');
int match = 0;
@@ -5536,7 +5536,7 @@ symbol_completion_match (const char *sym_name,
/* Second: Try wild matching... */
- if (!match && wild_match)
+ if (!match && wild_mode_flag)
{
/* Since we are doing wild matching, this means that TEXT
may represent an unqualified symbol name. We therefore must
--
1.7.5.4