Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Trivial: Remove unused variable in c_printstr
@ 2012-07-04  7:34 Siddhesh Poyarekar
  2012-07-04  7:40 ` Siddhesh Poyarekar
  0 siblings, 1 reply; 5+ messages in thread
From: Siddhesh Poyarekar @ 2012-07-04  7:34 UTC (permalink / raw)
  To: gdb-patches

Hi,

Here's a trivial patch that removes an unused variable WIDTH from
c_printstr.

Regards,
Siddhesh

gdb/ChangeLog:

2012-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>

	* c-lang.c (c_printstr): Remove ununsed variable WIDTH.


diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b9e1f62..2d4f0a4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2012-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+	* c-lang.c (c_printstr): Remove ununsed variable WIDTH.
+
 2012-06-28  Doug Evans  <dje@google.com>
 
 	* dwarf2read.c (get_cu_length): New function.
diff --git a/gdb/c-lang.c b/gdb/c-lang.c
index 28dce8d..b5135d5 100644
--- a/gdb/c-lang.c
+++ b/gdb/c-lang.c
@@ -202,7 +202,6 @@ c_printstr (struct ui_file *stream, struct type *type,
   unsigned int things_printed = 0;
   int in_quotes = 0;
   int need_comma = 0;
-  int width = TYPE_LENGTH (type);
   struct obstack wchar_buf, output;
   struct cleanup *cleanup;
   struct wchar_iterator *iter;


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

end of thread, other threads:[~2012-07-06  5:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-04  7:34 [PATCH] Trivial: Remove unused variable in c_printstr Siddhesh Poyarekar
2012-07-04  7:40 ` Siddhesh Poyarekar
2012-07-04 20:00   ` Jan Kratochvil
2012-07-05  1:03     ` Siddhesh Poyarekar
2012-07-06  5:48     ` Siddhesh Poyarekar

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