* c-lang.c (c_printstr): Remove ununsed variable WIDTH.
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Fri, 6 Jul 2012 05:46:04 +0000 (05:46 +0000)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Fri, 6 Jul 2012 05:46:04 +0000 (05:46 +0000)
gdb/ChangeLog
gdb/c-lang.c

index e432894..baf41f0 100644 (file)
@@ -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
index 28dce8d..b5135d5 100644 (file)
@@ -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;