From 2446b5b849d3de2cad9cc3dc57eecbfcbc7b5dfb Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Wed, 5 Oct 2022 14:35:22 +0000 Subject: cube: silence -DNDEBUG warning for KHR_display after 27c21248221f cube/cube.c:3122:14: error: variable 'result' set but not used [-Werror,-Wunused-but-set-variable] VkResult result; ^ --- cube/cube.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cube/cube.c b/cube/cube.c index e270a8dd..5cd67866 100644 --- a/cube/cube.c +++ b/cube/cube.c @@ -3119,7 +3119,7 @@ static VkBool32 demo_check_layers(uint32_t check_count, char **check_names, uint #if defined(VK_USE_PLATFORM_DISPLAY_KHR) int find_display_gpu(int gpu_number, uint32_t gpu_count, VkPhysicalDevice *physical_devices) { uint32_t display_count = 0; - VkResult result; + VkResult U_ASSERT_ONLY result; int gpu_return = gpu_number; if (gpu_number >= 0) { result = vkGetPhysicalDeviceDisplayPropertiesKHR(physical_devices[gpu_number], &display_count, NULL); -- cgit v1.2.3