2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
authorAleksandar Ristovski <aristovski@qnx.com>
Thu, 31 Jan 2013 18:46:11 +0000 (18:46 +0000)
committerAleksandar Ristovski <aristovski@qnx.com>
Thu, 31 Jan 2013 18:46:11 +0000 (18:46 +0000)
* c-exp.y (classify_inner_name): Remove unused type.
* c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
need_escape.
(c_get_string): Remove unused kind.
* c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.

Reference: http://sourceware.org/ml/gdb-patches/2013-01/msg00759.html

gdb/ChangeLog
gdb/c-exp.y
gdb/c-lang.c
gdb/c-typeprint.c

index f968d2ae58145fce1918bd5224b8e84d3ce95beb..e9f269e8789cb1d0646f2ec91937570c5036072e 100644 (file)
@@ -1,3 +1,12 @@
+2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
+
+       * c-exp.y (classify_inner_name): Remove unused type.
+       * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
+       in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
+       need_escape.
+       (c_get_string): Remove unused kind.
+       * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
+
 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
 
        * charset.c (intermediate_encoding): Remove unused i.
index d396ae5bda3d5f8360888eaaed34b76239d38573..376c5743d552255cd8d2e305dff499cbae4d2993 100644 (file)
@@ -2865,7 +2865,7 @@ classify_name (const struct block *block)
 static int
 classify_inner_name (const struct block *block, int first_name)
 {
-  struct type *type, *new_type;
+  struct type *type;
   char *copy;
 
   if (first_name)
index c9b0f519a9a0a25b7bed9cc41cc46e5d1d4c3ae7..3a7d6f18d9c9f0d2a81eaa68c16dcb1e8a7e1549 100644 (file)
@@ -196,17 +196,6 @@ c_printstr (struct ui_file *stream, struct type *type,
   const char *type_encoding;
   const char *encoding;
 
-  enum bfd_endian byte_order = gdbarch_byte_order (get_type_arch (type));
-  unsigned int i;
-  unsigned int things_printed = 0;
-  int in_quotes = 0;
-  int need_comma = 0;
-  struct obstack wchar_buf, output;
-  struct cleanup *cleanup;
-  struct wchar_iterator *iter;
-  int finished = 0;
-  int need_escape = 0;
-
   str_type = (classify_type (type, get_type_arch (type), &type_encoding)
              & ~C_CHAR);
   switch (str_type)
@@ -255,7 +244,6 @@ c_get_string (struct value *value, gdb_byte **buffer,
   int req_length = *length;
   enum bfd_endian byte_order
     = gdbarch_byte_order (get_type_arch (type));
-  enum c_string_type kind;
 
   if (element_type == NULL)
     goto error;
@@ -284,9 +272,7 @@ c_get_string (struct value *value, gdb_byte **buffer,
 
   if (! c_textual_element_type (element_type, 0))
     goto error;
-  kind = classify_type (element_type,
-                       get_type_arch (element_type),
-                       charset);
+  classify_type (element_type, get_type_arch (element_type), charset);
   width = TYPE_LENGTH (element_type);
 
   /* If the string lives in GDB's memory instead of the inferior's,
index a6db16290ef92c6a688c4f06592dfcf352b3c414..ca8d89b0e9a94b6549ca63e6da48cf5bd30a780a 100644 (file)
@@ -462,13 +462,10 @@ c_type_print_args (struct type *type, struct ui_file *stream,
                   int linkage_name, enum language language,
                   const struct type_print_options *flags)
 {
-  int i, len;
-  struct field *args;
+  int i;
   int printed_any = 0;
 
   fprintf_filtered (stream, "(");
-  args = TYPE_FIELDS (type);
-  len = TYPE_NFIELDS (type);
 
   for (i = 0; i < TYPE_NFIELDS (type); i++)
     {
@@ -1298,7 +1295,6 @@ c_type_print_base (struct type *type, struct ui_file *stream,
                for (i = 0; i < TYPE_TYPEDEF_FIELD_COUNT (type); i++)
                  {
                    struct type *target = TYPE_TYPEDEF_FIELD_TYPE (type, i);
-                   struct typedef_hash_table *table2;
 
                    /* Dereference the typedef declaration itself.  */
                    gdb_assert (TYPE_CODE (target) == TYPE_CODE_TYPEDEF);
This page took 0.030357 seconds and 4 git commands to generate.