summaryrefslogtreecommitdiff
path: root/gdb/c-typeprint.c
diff options
context:
space:
mode:
authorAleksandar Ristovski <aristovski@qnx.com>2013-01-31 18:46:11 +0000
committerAleksandar Ristovski <aristovski@qnx.com>2013-01-31 18:46:11 +0000
commit186cc2fc60622fe5f8ed5f5155afffba89a980c2 (patch)
tree9d9c6f50b5f99337e78f971689eb627beaeb1873 /gdb/c-typeprint.c
parentb8bd96eae0f0e99236bc5d3cb23cd5c75e73aa31 (diff)
downloadgdb-186cc2fc60622fe5f8ed5f5155afffba89a980c2.tar.gz
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. Reference: http://sourceware.org/ml/gdb-patches/2013-01/msg00759.html
Diffstat (limited to 'gdb/c-typeprint.c')
-rw-r--r--gdb/c-typeprint.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c
index a6db16290ef..ca8d89b0e9a 100644
--- a/gdb/c-typeprint.c
+++ b/gdb/c-typeprint.c
@@ -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);