From 8ea13695588ac6e6b67bf721e61bb4d277d07089 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Thu, 6 May 2010 18:07:08 +0000 Subject: 2010-05-06 Michael Snyder * auxv.c (target_auxv_search): Delete unused variable. * blockframe.c (get_frame_block): Delete unused variable. * regcache.c (regcache_cpy): Delete unused variable. (regcache_cpy_no_passthrough): Delete unused variable. * charset.c (wchar_iterate): Delete unused variable. (find_charset_names): Delete unused variable. (_initialize_charset): Delete unused variable. * disasm.c (do_mixed_source_and_assembly): Delete unused variable. * source.c (set_default_source_symtab_and_line): Delete unused variable. (set_substitute_path_command): Delete unused variable. * value.c (preserve_values): Delete unused variable. (value_from_double): Delete unused variable. --- gdb/charset.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gdb/charset.c') diff --git a/gdb/charset.c b/gdb/charset.c index c422056baad..fadd2327646 100644 --- a/gdb/charset.c +++ b/gdb/charset.c @@ -634,7 +634,6 @@ wchar_iterate (struct wchar_iterator *iter, size_t orig_in = iter->bytes; size_t out_avail = out_request * sizeof (gdb_wchar_t); size_t num; - gdb_wchar_t result; size_t r = iconv (iter->desc, (ICONV_CONST char **) &iter->input, &iter->bytes, @@ -814,7 +813,7 @@ find_charset_names (void) /* The size of buf is chosen arbitrarily. */ char buf[1024]; char *start, *r; - int len, keep_going; + int len; r = fgets (buf, sizeof (buf), in); if (!r) @@ -909,8 +908,6 @@ default_auto_wide_charset (void) void _initialize_charset (void) { - struct cmd_list_element *new_cmd; - /* The first element is always "auto". */ VEC_safe_push (char_ptr, charsets, xstrdup ("auto")); find_charset_names (); -- cgit v1.2.1