Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 21/348] Fix -Wsahdow warnings
@ 2011-11-22 13:03 Andrey Smirnov
  2011-11-22 18:07 ` Tom Tromey
  2011-11-23 16:41 ` Mark Kettenis
  0 siblings, 2 replies; 4+ messages in thread
From: Andrey Smirnov @ 2011-11-22 13:03 UTC (permalink / raw)
  To: gdb-patches

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Fix -Wshadow warnings --]
[-- Type: text/x-diff, Size: 1343 bytes --]

From d17a56836ea91af85e584c7cfb467179345c46d3 Mon Sep 17 00:00:00 2001
From: Andrey Smirnov <andrew.smirnov@gmail.com>
Date: Tue, 22 Nov 2011 17:32:48 +0700
Subject: [PATCH 21/39] Fix -Wshadow warnings.

* annotate.c (annotate_array_section_begin): Fix -Wshadow
warnings.
---
 gdb/ChangeLog  |    5 +++++
 gdb/annotate.c |    4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4daf760..f6711e4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
 2011-11-22  Andrey Smirnov <andrew.smirnov@gmail.com>
 
+	* annotate.c (annotate_array_section_begin): Fix -Wshadow
+	warnings.
+
+2011-11-22  Andrey Smirnov <andrew.smirnov@gmail.com>
+
 	* amd64-tdep.c (amd64_push_dummy_call): Fix -Wshadow
 	warnings.
 
diff --git a/gdb/annotate.c b/gdb/annotate.c
index 2f0769a..93c65a1 100644
--- a/gdb/annotate.c
+++ b/gdb/annotate.c
@@ -522,11 +522,11 @@ annotate_frame_end (void)
 }
 \f
 void
-annotate_array_section_begin (int index, struct type *elttype)
+annotate_array_section_begin (int idx, struct type *elttype)
 {
   if (annotation_level == 2)
     {
-      printf_filtered (("\n\032\032array-section-begin %d "), index);
+      printf_filtered (("\n\032\032array-section-begin %d "), idx);
       print_value_flags (elttype);
       printf_filtered (("\n"));
     }
-- 
1.7.5.4


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-11-23 16:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-22 13:03 [PATCH 21/348] Fix -Wsahdow warnings Andrey Smirnov
2011-11-22 18:07 ` Tom Tromey
2011-11-23 16:41 ` Mark Kettenis
2011-11-23 16:57   ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox