aboutsummaryrefslogtreecommitdiff
path: root/gdb/charset.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-06 18:07:08 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-06 18:07:08 +0000
commit8ea13695588ac6e6b67bf721e61bb4d277d07089 (patch)
tree8ffdb81d285e8782e15c775a9c9f64676f3c051e /gdb/charset.c
parent0c4c2b4930c194e7dfa1cee459fe533aeea528d6 (diff)
downloadgdb-8ea13695588ac6e6b67bf721e61bb4d277d07089.zip
gdb-8ea13695588ac6e6b67bf721e61bb4d277d07089.tar.gz
gdb-8ea13695588ac6e6b67bf721e61bb4d277d07089.tar.bz2
2010-05-06 Michael Snyder <msnyder@vmware.com>
* 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.
Diffstat (limited to 'gdb/charset.c')
-rw-r--r--gdb/charset.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/charset.c b/gdb/charset.c
index c422056..fadd232 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 ();