This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 32/348] Fix -Wsahdow warnings
- From: Andrey Smirnov <andrew dot smirnov at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 22 Nov 2011 20:24:39 +0700
- Subject: [PATCH 32/348] Fix -Wsahdow warnings
>From 2846129089d735231877929c90eb8278a91506d0 Mon Sep 17 00:00:00 2001
From: Andrey Smirnov <andrew.smirnov@gmail.com>
Date: Tue, 22 Nov 2011 17:54:48 +0700
Subject: [PATCH 32/39] Fix -Wshadow warnings.
* breakpoint.c (watch_command_1): Fix -Wshadow
warnings.
---
gdb/ChangeLog | 5 +++++
gdb/breakpoint.c | 6 +++---
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7f1383a..d82ee5c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2011-11-22 Andrey Smirnov <andrew.smirnov@gmail.com>
+ * breakpoint.c (watch_command_1): Fix -Wshadow
+ warnings.
+
+2011-11-22 Andrey Smirnov <andrew.smirnov@gmail.com>
+
* breakpoint.c (create_breakpoint): Fix -Wshadow
warnings.
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 623283d..1a4974c 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -9181,17 +9181,17 @@ watch_command_1 (char *arg, int accessflag, int from_tty,
/* We've found a "mask" token, which means the user wants to
create a hardware watchpoint that is going to have the mask
facility. */
- struct value *mask_value, *mark;
+ struct value *mask_value, *mark_value;
if (use_mask)
error(_("You can specify only one mask."));
use_mask = just_location = 1;
- mark = value_mark ();
+ mark_value = value_mark ();
mask_value = parse_to_comma_and_eval (&value_start);
mask = value_as_address (mask_value);
- value_free_to_mark (mark);
+ value_free_to_mark (mark_value);
}
else
/* We didn't recognize what we found. We should stop here. */
--
1.7.5.4