From 5b92b49f16b3b9cb925d4728e58067ada405737d Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Mon, 28 Feb 2011 22:49:57 +0000 Subject: [PATCH] 2011-02-28 Michael Snyder * opencl-lang.c (evaluate_subexp_opencl): Discard unused value. --- gdb/ChangeLog | 2 ++ gdb/opencl-lang.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 56db155e9f6..15484392ab2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2011-02-28 Michael Snyder + * opencl-lang.c (evaluate_subexp_opencl): Discard unused value. + * p-valprint.c (pascal_val_print): Discard unused value. * utils.c (nquery): Call va_end before return; diff --git a/gdb/opencl-lang.c b/gdb/opencl-lang.c index bbd95f1022b..22d16112ab8 100644 --- a/gdb/opencl-lang.c +++ b/gdb/opencl-lang.c @@ -776,7 +776,7 @@ evaluate_subexp_opencl (struct type *expect_type, struct expression *exp, if (noside == EVAL_SKIP) { - arg2 = evaluate_subexp (NULL_TYPE, exp, pos, noside); + evaluate_subexp (NULL_TYPE, exp, pos, noside); return value_from_longest (builtin_type (exp->gdbarch)-> builtin_int, 1); -- 2.30.2