mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
The specification states that `clEnqueueMapImage` and `clEnqueueMapBuffer` should return NULL on error. Ensure this is checked. This testing gap was caught by a compiler warning about `dataPtr` being written but not read. With this fix, there are no more Wunused-but-set-variable warnings in this test, so reenable the warning. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
10 lines
151 B
CMake
10 lines
151 B
CMake
set(MODULE_NAME MEM_HOST_FLAGS)
|
|
|
|
set(${MODULE_NAME}_SOURCES
|
|
main.cpp
|
|
mem_host_buffer.cpp
|
|
mem_host_image.cpp
|
|
)
|
|
|
|
include(../CMakeCommon.txt)
|