From: Siddhesh Poyarekar <siddhesh@redhat.com>
To: gdb-patches@sourceware.org
Subject: [PATCH] Trivial: Remove unused variable in c_printstr
Date: Wed, 04 Jul 2012 07:34:00 -0000 [thread overview]
Message-ID: <20120704130357.0826b3ec@spoyarek> (raw)
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;
next reply other threads:[~2012-07-04 7:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-04 7:34 Siddhesh Poyarekar [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120704130357.0826b3ec@spoyarek \
--to=siddhesh@redhat.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox