summaryrefslogtreecommitdiff
path: root/src/cl_event.c
diff options
context:
space:
mode:
authorLv Meng <meng.lv@intel.com>2014-08-15 09:16:33 +0800
committerYang Rong <rong.r.yang@intel.com>2014-08-19 14:06:08 +0800
commit7197ece4b83162b2f1fea84c6fda040febe7c89f (patch)
treeef5eee41fdc85bd25b0e3bdaabf9bec0f26fc1b6 /src/cl_event.c
parentb9334672bfeab9247ff92d0051d93b98b8e3da39 (diff)
Fix compile warnings for CLANG compiler
1.fix data structure redefine warnings. 2.fix 'data' with variable sized type 'union<*>' not at the end of a class warning(in immediate.hpp). 3.fix implicitly conversion warning. 4.fix explicitly assigning a variable type warning. 5.fix comparison of unsigned expression < 0 is always false warning(in cl_api.c). Signed-off-by: Lv Meng <meng.lv@intel.com> Reviewed-by: "Song, Ruiling" <ruiling.song@intel.com>
Diffstat (limited to 'src/cl_event.c')
-rw-r--r--src/cl_event.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cl_event.c b/src/cl_event.c
index 99e60eb5..c3c6dde3 100644
--- a/src/cl_event.c
+++ b/src/cl_event.c
@@ -472,9 +472,8 @@ void cl_event_set_status(cl_event event, cl_int status)
/* All user events complete, now wait enqueue events */
ret = cl_event_wait_events(enqueue_cb->num_events, enqueue_cb->wait_list,
enqueue_cb->event->queue);
- ret = ret;
assert(ret != CL_ENQUEUE_EXECUTE_DEFER);
-
+ ret = ~ret;
cb = enqueue_cb;
enqueue_cb = enqueue_cb->next;