[Beignet] [PATCH] fix gcc build error.
xionghu.luo at intel.com
xionghu.luo at intel.com
Tue Dec 8 07:38:26 PST 2015
From: Luo Xionghu <xionghu.luo at intel.com>
this link fail appears on gcc 5.2.1.
Signed-off-by: Luo Xionghu <xionghu.luo at intel.com>
---
src/cl_api.c | 2 +-
src/cl_event.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/cl_api.c b/src/cl_api.c
index a18bc99..e203258 100644
--- a/src/cl_api.c
+++ b/src/cl_api.c
@@ -64,7 +64,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 bd4d700..041c178 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) {
--
2.5.0
More information about the Beignet
mailing list