From: Michael Snyder Date: Thu, 6 May 2010 18:26:13 +0000 (+0000) Subject: 2010-05-06 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8f78b329f08167847d9b94940b3bcae6ee292242;p=binutils-gdb.git 2010-05-06 Michael Snyder * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5bd03889ce1..9231de145af 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,17 @@ 2010-05-06 Michael Snyder + * 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. + * auxv.c (target_auxv_search): Delete unused variable. * blockframe.c (get_frame_block): Delete unused variable. * regcache.c (regcache_cpy): Delete unused variable. diff --git a/gdb/eval.c b/gdb/eval.c index fd132ea1443..b5c2012c9af 100644 --- a/gdb/eval.c +++ b/gdb/eval.c @@ -690,7 +690,7 @@ evaluate_subexp_standard (struct type *expect_type, struct type *type; int nargs; struct value **argvec; - int upper, lower, retcode; + int upper, lower; int code; int ix; long mem_offset; @@ -1418,7 +1418,6 @@ evaluate_subexp_standard (struct type *expect_type, { /* Unpack it locally so we can properly handle overload resolution. */ - struct type *qual_type; char *name; int local_tem; diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 16ea2a65d6c..d202330ab08 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -959,7 +959,6 @@ print_command_1 (char *exp, int inspect, int voidprint) if (exp && *exp) { - struct type *type; expr = parse_expression (exp); old_chain = make_cleanup (free_current_contents, &expr); cleanup = 1; @@ -1175,7 +1174,6 @@ sym_info (char *arg, int from_tty) static void address_info (char *exp, int from_tty) { - struct block *block; struct gdbarch *gdbarch; int regno; struct symbol *sym; @@ -2383,7 +2381,6 @@ printf_command (char *arg, int from_tty) { struct gdbarch *gdbarch = get_type_arch (value_type (val_args[i])); - enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); struct type *wctype = lookup_typename (current_language, gdbarch, "wchar_t", NULL, 0); struct type *valtype; diff --git a/gdb/valarith.c b/gdb/valarith.c index 60f09a610e5..4efe93687c1 100644 --- a/gdb/valarith.c +++ b/gdb/valarith.c @@ -146,7 +146,6 @@ an integer nor a pointer of the same type.")); struct value * value_subscript (struct value *array, LONGEST index) { - struct value *bound; int c_style = current_language->c_style_arrays; struct type *tarray; @@ -881,7 +880,6 @@ value_binop (struct value *arg1, struct value *arg2, enum exp_opcode op) if (TYPE_CODE (type1) == TYPE_CODE_DECFLOAT || TYPE_CODE (type2) == TYPE_CODE_DECFLOAT) { - struct type *v_type; int len_v1, len_v2, len_v; enum bfd_endian byte_order_v1, byte_order_v2, byte_order_v; gdb_byte v1[16], v2[16]; diff --git a/gdb/valops.c b/gdb/valops.c index f2997df6207..65706c5ff2e 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; diff --git a/gdb/valprint.c b/gdb/valprint.c index d6ecc04741f..de1161decaf 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -1631,8 +1631,6 @@ show_print (char *args, int from_tty) void _initialize_valprint (void) { - struct cmd_list_element *c; - add_prefix_cmd ("print", no_class, set_print, _("Generic command for setting how things print."), &setprintlist, "set print ", 0, &setlist);