This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Trivial: Remove unused variable in c_printstr
- From: Siddhesh Poyarekar <siddhesh at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 4 Jul 2012 13:03:57 +0530
- Subject: [PATCH] Trivial: Remove unused variable in c_printstr
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;