This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] eval.c, evaluate_subexp_standard, delete unused variable and discard unused values
- From: Michael Snyder <msnyder at vmware dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Mon, 28 Feb 2011 15:50:35 -0800
- Subject: [commit] eval.c, evaluate_subexp_standard, delete unused variable and discard unused values
checked in.
2011-02-28 Michael Snyder <msnyder@vmware.com>
* eval.c (evaluate_subexp_standard): Delete unused variable,
and discard unused values.
Index: eval.c
===================================================================
RCS file: /cvs/src/src/gdb/eval.c,v
retrieving revision 1.146
diff -u -p -u -p -r1.146 eval.c
--- eval.c 12 Jan 2011 16:16:21 -0000 1.146
+++ eval.c 28 Feb 2011 23:45:34 -0000
@@ -1326,13 +1326,12 @@ evaluate_subexp_standard (struct type *e
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 *e
}
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 *e
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 *e
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;
}