diff options
| author | Jan Beich <jbeich@FreeBSD.org> | 2022-10-05 14:35:22 +0000 |
|---|---|---|
| committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2022-10-05 12:06:30 -0600 |
| commit | 2446b5b849d3de2cad9cc3dc57eecbfcbc7b5dfb (patch) | |
| tree | 4843a55e8719df0e6b55e8863b448c92a5f55767 | |
| parent | 467f61cd34b30a817d3b9c8fddecd661dc86e1fe (diff) | |
| download | usermoji-2446b5b849d3de2cad9cc3dc57eecbfcbc7b5dfb.tar.xz | |
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;
^
| -rw-r--r-- | cube/cube.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
