aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.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/value.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/value.c')
-rw-r--r--gdb/value.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/value.c b/gdb/value.c
index 19386b6..2f1ae7a 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -1481,7 +1481,6 @@ preserve_values (struct objfile *objfile)
htab_t copied_types;
struct value_history_chunk *cur;
struct internalvar *var;
- struct value *val;
int i;
/* Create the hash table. We allocate on the objfile's obstack, since
@@ -2243,7 +2242,6 @@ value_from_double (struct type *type, DOUBLEST num)
struct value *val = allocate_value (type);
struct type *base_type = check_typedef (type);
enum type_code code = TYPE_CODE (base_type);
- int len = TYPE_LENGTH (base_type);
if (code == TYPE_CODE_FLT)
{