This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 026/238] [misc.] bcache.c: -Wshadow fix
Cause:
`bcache' from "bcache.h"
To ChangeLog:
* bcache.c (bcache_memory_used): Rename `bcache' to `cache'(-Wshadow).
---
gdb/ChangeLog | 5 +++++
gdb/bcache.c | 6 +++---
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8a0adc0..523da0f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2011-11-22 Andrey Smirnov <andrew.smirnov@gmail.com>
+ * bcache.c (bcache_memory_used): Fix -Wshadow
+ warnings.
+
+2011-11-22 Andrey Smirnov <andrew.smirnov@gmail.com>
+
* bcache.c (bcache_xfree): Fix -Wshadow
warnings.
diff --git a/gdb/bcache.c b/gdb/bcache.c
index 6cd64f5..5c82f58 100644
--- a/gdb/bcache.c
+++ b/gdb/bcache.c
@@ -488,9 +488,9 @@ Total memory used by bcache, including overhead: %ld\n"),
}
int
-bcache_memory_used (struct bcache *bcache)
+bcache_memory_used (struct bcache *cache)
{
- if (bcache->total_count == 0)
+ if (cache->total_count == 0)
return 0;
- return obstack_memory_used (&bcache->cache);
+ return obstack_memory_used (&cache->cache);
}
--
1.7.5.4