This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Trivial: Remove unused variable in c_printstr


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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]