diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-07-18 10:01:13 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-07-18 13:13:52 +0200 |
commit | 34545c3648f72bf655623139e5fcc981ea1fd5a6 (patch) | |
tree | 12531f9a39c7ee8d4854b42c54279ddf7ce5a2e5 /opencl | |
parent | 9cf255dfeda194e601942ea5fcb4b562a080bd8b (diff) |
cid#1448546 Logically dead code
Change-Id: I7013e5ef67ae58c42886a4ba6ea0c9a47074ac8e
Reviewed-on: https://gerrit.libreoffice.org/75834
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'opencl')
-rw-r--r-- | opencl/opencltest/main.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/opencl/opencltest/main.cxx b/opencl/opencltest/main.cxx index 0b1292e3e7a3..a499032f8c05 100644 --- a/opencl/opencltest/main.cxx +++ b/opencl/opencltest/main.cxx @@ -110,9 +110,9 @@ static void runTest(const char* deviceName, const char* devicePlatform) cl_program program = clCreateProgramWithSource(context, 1, source, sourceSize, &state); openclcheck(state); state = clBuildProgram(program, 1, &deviceId, nullptr, nullptr, nullptr); +#ifdef DBG_UTIL if (state != CL_SUCCESS) { -#ifdef DBG_UTIL size_t length; status = clGetProgramBuildInfo(program, deviceId, CL_PROGRAM_BUILD_LOG, 0, nullptr, &length); @@ -122,10 +122,9 @@ static void runTest(const char* deviceName, const char* devicePlatform) error[length] = '\0'; cerr << "OpenCL driver check build error:" << error.data() << endl; abort(); -#else - openclcheck(state); -#endif } +#endif + openclcheck(state); cl_kernel kernel = clCreateKernel(program, "testFunction", &state); openclcheck(state); |