This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 9/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:38:40 +0700
- Subject: [PATCH 9/348] Fix -Wshadow warnings
>From 534c322d569b8fcf58747a0953d9fd5f2d2b59b6 Mon Sep 17 00:00:00 2001
From: Andrey Smirnov <andrew.smirnov@gmail.com>
Date: Sat, 19 Nov 2011 09:52:28 +0700
Subject: [PATCH 09/18] Fix Wshadow
---
gdb/ChangeLog | 4 ++++
gdb/ada-lang.c | 6 +++---
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 272977a..7354c27 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_add): Fix -Wshadow warnings.
+
+2011-11-19 Andrey Smirnov <andrew.smirnov@gmail.com>
+
* ada-lang.c (ada_make_symbol_completion_list): Fix -Wshadow
warnings.
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index ca5db88..5bdbc6b 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -5573,7 +5573,7 @@ DEF_VEC_P (char_ptr);
completion should be performed. These two parameters are used to
determine which part of the symbol name should be added to the
completion vector.
- if WILD_MATCH is set, then wild matching is performed.
+ if WILD_MODE_FLAG is set, then wild matching is performed.
ENCODED should be set if TEXT represents a symbol name in its
encoded formed (in which case the completion should also be
encoded). */
@@ -5583,10 +5583,10 @@ symbol_completion_add (VEC(char_ptr) **sv,
const char *sym_name,
const char *text, int text_len,
const char *orig_text, const char *word,
- int wild_match, int encoded)
+ int wild_mode_flag, int encoded)
{
const char *match = symbol_completion_match (sym_name, text, text_len,
- wild_match, encoded);
+ wild_mode_flag, encoded);
char *completion;
if (match == NULL)
--
1.7.5.4