aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2012-07-06 05:46:04 +0000
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2012-07-06 05:46:04 +0000
commit9bfc60bf8d4cddf04d1ec55e17fb22480da862c1 (patch)
treeb62b7a944d81451c1998aea296e7b589a88d17d7 /gdb
parentd5161074ccccf328ee055eee45b88284939b4fe2 (diff)
downloadgdb-9bfc60bf8d4cddf04d1ec55e17fb22480da862c1.zip
gdb-9bfc60bf8d4cddf04d1ec55e17fb22480da862c1.tar.gz
gdb-9bfc60bf8d4cddf04d1ec55e17fb22480da862c1.tar.bz2
* c-lang.c (c_printstr): Remove ununsed variable WIDTH.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/c-lang.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e432894..baf41f0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,4 +1,8 @@
2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
+
+ * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
+
+2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
Jan Kratochvil <jan.kratochvil@redhat.com>
* cp-valprint.c (cp_print_value): Replace potentially unsafe
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;