From 67c7bdca9265c16443c4b5a63f2cf6d5df520ad5 Mon Sep 17 00:00:00 2001 From: Ahmed Hesham Date: Tue, 8 Oct 2024 20:14:19 +0100 Subject: [PATCH] Fix warning now treated as error Following the re-enablement of narrowing warnings, this fixes a compilation error when running the `ubuntu 22.04 arm` GitHub action. Signed-off-by: Ahmed Hesham --- .../cl_khr_semaphore/test_semaphores_negative_wait_signal.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test_conformance/extensions/cl_khr_semaphore/test_semaphores_negative_wait_signal.cpp b/test_conformance/extensions/cl_khr_semaphore/test_semaphores_negative_wait_signal.cpp index 95dcb30a13..0af20b3234 100644 --- a/test_conformance/extensions/cl_khr_semaphore/test_semaphores_negative_wait_signal.cpp +++ b/test_conformance/extensions/cl_khr_semaphore/test_semaphores_negative_wait_signal.cpp @@ -88,7 +88,8 @@ template struct InvalidCommandQueue : public SemaphoreTestBase } cl_device_partition_property partitionProp[] = { - CL_DEVICE_PARTITION_EQUALLY, maxComputeUnits / 2, 0 + CL_DEVICE_PARTITION_EQUALLY, + static_cast(maxComputeUnits / 2), 0 }; cl_uint deviceCount = 0;