summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuo Xionghu <xionghu.luo@intel.com>2015-12-08 23:38:26 +0800
committerYang Rong <rong.r.yang@intel.com>2015-12-09 17:02:06 +0800
commit6a0f2e64b05c625017d06d0da7b09add8a69dcd2 (patch)
tree580b1f06d1489e4370b0b97235bdb9014390f4bb
parentf2a8ca014994d3a69d6a1e64e50650a68c70a167 (diff)
fix gcc build error.
this link fail appears on gcc 5.2.1. Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
-rw-r--r--src/cl_api.c2
-rw-r--r--src/cl_event.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cl_api.c b/src/cl_api.c
index 9a0a54ab..510941e5 100644
--- a/src/cl_api.c
+++ b/src/cl_api.c
@@ -67,7 +67,7 @@ typedef intptr_t cl_device_partition_property;
return RET; \
} while(0)
-inline cl_int
+static inline cl_int
handle_events(cl_command_queue queue, cl_int num, const cl_event *wait_list,
cl_event* event, enqueue_data* data, cl_command_type type)
{
diff --git a/src/cl_event.c b/src/cl_event.c
index 33916697..d2aee1ef 100644
--- a/src/cl_event.c
+++ b/src/cl_event.c
@@ -55,7 +55,7 @@ void cl_event_insert_last_events(cl_command_queue queue,cl_event event)
else set_last_event(queue,event);
}
-inline cl_bool
+static inline cl_bool
cl_event_is_gpu_command_type(cl_command_type type)
{
switch(type) {