diff options
author | Lv Meng <meng.lv@intel.com> | 2014-08-08 16:10:03 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2014-08-12 14:48:49 +0800 |
commit | 9ddee3847bd113387ab1624edda3422470b8de7d (patch) | |
tree | 07a98d42297d69eb022e74c765683c95e287c8e2 /src/cl_api.c | |
parent | 36969d7e65cdb7adf4a1703db5e5a0f5f70b5303 (diff) |
Fix compile errors for CLANG compiler
Use vector to fix "variable length array of non-POD element type" compiler error.
The /beignet/backend/src/./ir/context.hpp "fn->immediates[index] = imm" would call a private func
'operator=' which would trigger error, and it is not being used.
The undefined reference to `check_copy_overlap' would occur in the following calling.
Signed-off-by: Lv Meng <meng.lv@intel.com>
Reviewed-by: "Song, Ruiling" <ruiling.song@intel.com>
Diffstat (limited to 'src/cl_api.c')
-rw-r--r-- | src/cl_api.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cl_api.c b/src/cl_api.c index e0d45212..9f702d2a 100644 --- a/src/cl_api.c +++ b/src/cl_api.c @@ -90,10 +90,10 @@ handle_events(cl_command_queue queue, cl_int num, const cl_event *wait_list, } /* The following code checking overlap is from Appendix of openCL spec 1.1 */ -inline cl_bool check_copy_overlap(const size_t src_offset[3], - const size_t dst_offset[3], - const size_t region[3], - size_t row_pitch, size_t slice_pitch) +cl_bool check_copy_overlap(const size_t src_offset[3], + const size_t dst_offset[3], + const size_t region[3], + size_t row_pitch, size_t slice_pitch) { const size_t src_min[] = {src_offset[0], src_offset[1], src_offset[2]}; const size_t src_max[] = {src_offset[0] + region[0], |