2011-02-28 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Mon, 28 Feb 2011 22:49:57 +0000 (22:49 +0000)
committerMichael Snyder <msnyder@vmware.com>
Mon, 28 Feb 2011 22:49:57 +0000 (22:49 +0000)
* opencl-lang.c (evaluate_subexp_opencl): Discard unused value.

gdb/ChangeLog
gdb/opencl-lang.c

index 56db155e9f6e41ab6d720fa277f3bdee58957d97..15484392ab2241b7a6b78ee9b850aa939d309338 100644 (file)
@@ -1,5 +1,7 @@
 2011-02-28  Michael Snyder  <msnyder@vmware.com>
 
+       * 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;
index bbd95f1022b3887bb82457dba545cdca55b14e93..22d16112ab8157d2bacdd8ea2290f8830c9f09ae 100644 (file)
@@ -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);