From 47820892eabdb2f0020a503c57f71251b6c8bf0f Mon Sep 17 00:00:00 2001 From: Slawomir Cygan Date: Mon, 7 Dec 2020 18:19:25 +0100 Subject: [PATCH] Fix clang 10.0 build of ray tracing control flow tests The build fails due to -Werror,-Wunused-const-variable warning. the PUSH_CONSTANTS_COUNT constant is used only in debug builds. Components: Vulkan Change-Id: I6ee3920619109024cb9ba29c0d22722d0069d91d (cherry picked from commit d64576958e0195bb9029ac7ffab9717afb9ddffa) --- .../vulkan/ray_tracing/vktRayTracingComplexControlFlowTests.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/external/vulkancts/modules/vulkan/ray_tracing/vktRayTracingComplexControlFlowTests.cpp b/external/vulkancts/modules/vulkan/ray_tracing/vktRayTracingComplexControlFlowTests.cpp index e4353262b..176e8afed 100644 --- a/external/vulkancts/modules/vulkan/ray_tracing/vktRayTracingComplexControlFlowTests.cpp +++ b/external/vulkancts/modules/vulkan/ray_tracing/vktRayTracingComplexControlFlowTests.cpp @@ -56,7 +56,9 @@ static const VkFlags ALL_RAY_TRACING_STAGES = VK_SHADER_STAGE_RAYGEN_BIT_KHR | VK_SHADER_STAGE_INTERSECTION_BIT_KHR | VK_SHADER_STAGE_CALLABLE_BIT_KHR; +#if defined(DE_DEBUG) static const deUint32 PUSH_CONSTANTS_COUNT = 6; +#endif static const deUint32 DEFAULT_CLEAR_VALUE = 999999; enum TestType -- 2.34.1