aboutsummaryrefslogtreecommitdiff
path: root/src/core/CL
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2017-09-27 11:20:48 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commit30f0215ba247c05a81e91ed420f14b686a3528f3 (patch)
tree152ad7662b793ccc04a8804009dd5b5887e7de7d /src/core/CL
parent74180bb942f681c535e2e1c483d4c8a8edfdb4a7 (diff)
downloadComputeLibrary-30f0215ba247c05a81e91ed420f14b686a3528f3.tar.gz
COMPMID-417: Fix clang-tidy failures for 32-bit runs
Change-Id: I2fbb6dda1c281627a4d64dce3b4c4d2ebaa8d022 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/89289 Reviewed-by: Pablo Tello <pablo.tello@arm.com> Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'src/core/CL')
-rw-r--r--src/core/CL/CLHelpers.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/CL/CLHelpers.cpp b/src/core/CL/CLHelpers.cpp
index 5c4d8e9184..821fb4c051 100644
--- a/src/core/CL/CLHelpers.cpp
+++ b/src/core/CL/CLHelpers.cpp
@@ -161,6 +161,7 @@ GPUTarget get_target_from_device(cl::Device &device)
// Query device name size
cl_int err = clGetDeviceInfo(device.get(), CL_DEVICE_NAME, 0, nullptr, &name_size);
ARM_COMPUTE_ERROR_ON_MSG((err != 0) || (name_size == 0), "clGetDeviceInfo failed to return valid information");
+ ARM_COMPUTE_UNUSED(err);
std::vector<char> name_buffer(name_size);
@@ -206,6 +207,7 @@ bool non_uniform_workgroup_support(const cl::Device &device)
size_t extension_size = 0;
cl_int err = clGetDeviceInfo(device.get(), CL_DEVICE_EXTENSIONS, 0, nullptr, &extension_size);
ARM_COMPUTE_ERROR_ON_MSG((err != 0) || (extension_size == 0), "clGetDeviceInfo failed to return valid information");
+ ARM_COMPUTE_UNUSED(err);
// Resize vector
extension.resize(extension_size);
// Query extension
@@ -224,6 +226,8 @@ CLVersion get_cl_version(const cl::Device &device)
size_t version_size = 0;
cl_int err = clGetDeviceInfo(device.get(), CL_DEVICE_VERSION, 0, nullptr, &version_size);
ARM_COMPUTE_ERROR_ON_MSG((err != 0) || (version_size == 0), "clGetDeviceInfo failed to return valid information");
+ ARM_COMPUTE_UNUSED(err);
+
// Resize vector
version.resize(version_size);
// Query version