This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 23/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:08:28 +0700
- Subject: [PATCH 23/348] Fix -Wsahdow warnings
>From 35d50df3ab2502bf6b285a6363fc3ae8e5918c46 Mon Sep 17 00:00:00 2001
From: Andrey Smirnov <andrew.smirnov@gmail.com>
Date: Tue, 22 Nov 2011 17:36:25 +0700
Subject: [PATCH 23/39] Fix -Wshadow warnings.
* bcache.c (bcache): Fix -Wshadow
warnings.
---
gdb/ChangeLog | 5 +++++
gdb/bcache.c | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d972e6a..aeb5b56 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2011-11-22 Andrey Smirnov <andrew.smirnov@gmail.com>
+ * bcache.c (bcache): Fix -Wshadow
+ warnings.
+
+2011-11-22 Andrey Smirnov <andrew.smirnov@gmail.com>
+
* bcache.c (expand_hash_table): Fix -Wshadow
warnings.
diff --git a/gdb/bcache.c b/gdb/bcache.c
index f7543f4..0fe42b5 100644
--- a/gdb/bcache.c
+++ b/gdb/bcache.c
@@ -209,9 +209,9 @@ expand_hash_table (struct bcache *cahce)
never seen those bytes before, add a copy of them to BCACHE. In
either case, return a pointer to BCACHE's copy of that string. */
const void *
-bcache (const void *addr, int length, struct bcache *bcache)
+bcache (const void *addr, int length, struct bcache *cache)
{
- return bcache_full (addr, length, bcache, NULL);
+ return bcache_full (addr, length, cache, NULL);
}
/* Find a copy of the LENGTH bytes at ADDR in BCACHE. If BCACHE has
--
1.7.5.4