summaryrefslogtreecommitdiff
path: root/gdb/eval.c
diff options
context:
space:
mode:
authorsiddhesh <siddhesh>2012-09-21 09:24:40 +0000
committersiddhesh <siddhesh>2012-09-21 09:24:40 +0000
commit5c60924fd198760f60a2ddea584365e7096e4556 (patch)
tree4158ce5228cd55bfa3ce505654ab32bb6fb9ce7b /gdb/eval.c
parent37a608ab1c546bfe618844dbd8f6737d66189cfc (diff)
downloadgdb-5c60924fd198760f60a2ddea584365e7096e4556.tar.gz
* eval.c (evaluate_subexp_standard): Eliminate single-use
variable LOWER.
Diffstat (limited to 'gdb/eval.c')
-rw-r--r--gdb/eval.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/eval.c b/gdb/eval.c
index 9fe7e388968..26e0cc829fa 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;