From 0953dec1c5fd4a0dabd66a113cd3ccad5b612f23 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Fri, 21 Sep 2012 09:24:41 +0000 Subject: * eval.c (evaluate_subexp_standard): Eliminate single-use variable LOWER. --- gdb/eval.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gdb/eval.c') diff --git a/gdb/eval.c b/gdb/eval.c index 9fe7e38..26e0cc8 100644 --- a/gdb/eval.c +++ b/gdb/eval.c @@ -810,7 +810,6 @@ evaluate_subexp_standard (struct type *expect_type, struct type *type; int nargs; struct value **argvec; - int lower; int code; int ix; long mem_offset; @@ -2370,8 +2369,8 @@ evaluate_subexp_standard (struct type *expect_type, struct type *array_type = check_typedef (value_type (array)); LONGEST index = subscript_array[i - 1]; - lower = f77_get_lowerbound (array_type); - array = value_subscripted_rvalue (array, index, lower); + array = value_subscripted_rvalue (array, index, + f77_get_lowerbound (array_type)); } return array; -- cgit v1.1