This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [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:10:22 +0530
- Subject: Re: [PATCH] Trivial: Remove unused variable in c_printstr
- References: <20120704130357.0826b3ec@spoyarek>
On Wed, 4 Jul 2012 13:03:57 +0530, Siddhesh wrote:
> Here's a trivial patch that removes an unused variable WIDTH from
> c_printstr.
>
Ugh, sorry, I didn't remove the ChangeLog hunk from my diff. Here it is
attached now. Also fixed typo in the ChangeLog.
Regards,
Siddhesh
gdb/ChangeLog:
2012-07-04 Siddhesh Poyarekar <siddhesh@redhat.com>
* c-lang.c (c_printstr): Remove unused variable WIDTH.
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;