aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-06 18:26:13 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-06 18:26:13 +0000
commit8f78b329f08167847d9b94940b3bcae6ee292242 (patch)
treef51b3219d24d11e614b279612c09003a75c63a4b /gdb/valops.c
parent8ea13695588ac6e6b67bf721e61bb4d277d07089 (diff)
downloadgdb-8f78b329f08167847d9b94940b3bcae6ee292242.zip
gdb-8f78b329f08167847d9b94940b3bcae6ee292242.tar.gz
gdb-8f78b329f08167847d9b94940b3bcae6ee292242.tar.bz2
2010-05-06 Michael Snyder <msnyder@vmware.com>
* eval.c (evaluate_subexp_standard): Delete unused variable. * valops.c (value_cast_pointers): Delete unused variable. (value_dynamic_cast): Delete unused variable. (value_array): Delete unused variable. (find_overload_match): Delete unused variable. * valarith.c (value_subscript): Delete unused variable. (value_binop): Delete unused variable. * valprint.c (_initialize_valprint): Delete unused variable. * printcmd.c (print_command_1): Delete unused variable. (address_info): Delete unused variable. (printf_command): Delete unused variable.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r--gdb/valops.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index f2997df..65706c5 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -298,7 +298,6 @@ value_cast_structs (struct type *type, struct value *v2)
struct value *
value_cast_pointers (struct type *type, struct value *arg2)
{
- struct type *type1 = check_typedef (type);
struct type *type2 = check_typedef (value_type (arg2));
struct type *t1 = check_typedef (TYPE_TARGET_TYPE (type));
struct type *t2 = check_typedef (TYPE_TARGET_TYPE (type2));
@@ -695,7 +694,7 @@ dynamic_cast_check_2 (struct type *desired_type,
struct value *
value_dynamic_cast (struct type *type, struct value *arg)
{
- int unambiguous = 0, full, top, using_enc;
+ int full, top, using_enc;
struct type *resolved_type = check_typedef (type);
struct type *arg_type = check_typedef (value_type (arg));
struct type *class_type, *rtti_type;
@@ -1614,7 +1613,6 @@ value_array (int lowbound, int highbound, struct value **elemvec)
unsigned int typelength;
struct value *val;
struct type *arraytype;
- CORE_ADDR addr;
/* Validate that the bounds are reasonable and that each of the
elements have the same size. */
@@ -2334,8 +2332,6 @@ find_overload_match (struct type **arg_types, int nargs,
int num_fns = 0;
struct type *basetype = NULL;
int boffset;
- int ix;
- int static_offset;
struct cleanup *old_cleanups = NULL;
const char *obj_type_name = NULL;