From 30f0215ba247c05a81e91ed420f14b686a3528f3 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Wed, 27 Sep 2017 11:20:48 +0100 Subject: 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 Tested-by: Kaizen Reviewed-by: Anthony Barbier --- src/core/CL/CLHelpers.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/CL') 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 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 -- cgit v1.2.1