From: Michael Snyder Date: Mon, 28 Feb 2011 23:47:39 +0000 (+0000) Subject: 2011-02-28 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=262acaeb4861984b7ea71b9291ffaad2eaa135e1;p=binutils-gdb.git 2011-02-28 Michael Snyder * eval.c (evaluate_subexp_standard): Delete unused variable, and discard unused values. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1cb4478c757..3d2cd325c8e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2011-02-28 Michael Snyder + * eval.c (evaluate_subexp_standard): Delete unused variable, + and discard unused values. + * infcmd.c (_initialize_infcmd): Discard unused values. * stabsread.c (rs6000_builtin_type): Missing break statement. diff --git a/gdb/eval.c b/gdb/eval.c index de25b398d12..4db0466a3f4 100644 --- a/gdb/eval.c +++ b/gdb/eval.c @@ -1326,13 +1326,12 @@ evaluate_subexp_standard (struct type *expect_type, if (method) { - struct block *b; CORE_ADDR funaddr; struct type *val_type; funaddr = find_function_addr (method, &val_type); - b = block_for_pc (funaddr); + block_for_pc (funaddr); CHECK_TYPEDEF (val_type); @@ -2233,8 +2232,8 @@ evaluate_subexp_standard (struct type *expect_type, } case BINOP_RANGE: - arg1 = evaluate_subexp (NULL_TYPE, exp, pos, noside); - arg2 = evaluate_subexp (NULL_TYPE, exp, pos, noside); + evaluate_subexp (NULL_TYPE, exp, pos, noside); + evaluate_subexp (NULL_TYPE, exp, pos, noside); if (noside == EVAL_SKIP) goto nosideret; error (_("':' operator used in invalid context")); @@ -2399,7 +2398,7 @@ evaluate_subexp_standard (struct type *expect_type, arg1 = evaluate_subexp (NULL_TYPE, exp, pos, noside); if (noside == EVAL_SKIP) { - arg2 = evaluate_subexp (NULL_TYPE, exp, pos, noside); + evaluate_subexp (NULL_TYPE, exp, pos, noside); goto nosideret; } @@ -2426,7 +2425,7 @@ evaluate_subexp_standard (struct type *expect_type, arg1 = evaluate_subexp (NULL_TYPE, exp, pos, noside); if (noside == EVAL_SKIP) { - arg2 = evaluate_subexp (NULL_TYPE, exp, pos, noside); + evaluate_subexp (NULL_TYPE, exp, pos, noside); goto nosideret; }