From 1295205cd4871b29eef8ae633ee7f19b18e92ac9 Mon Sep 17 00:00:00 2001 From: omar Date: Sun, 7 Apr 2019 22:27:45 +0200 Subject: [PATCH] Examples: Vulkan: Fixed warnings. (#2480) --- examples/example_glfw_vulkan/main.cpp | 3 ++- examples/example_sdl_vulkan/main.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/example_glfw_vulkan/main.cpp b/examples/example_glfw_vulkan/main.cpp index 43abd3e7..e0c062af 100644 --- a/examples/example_glfw_vulkan/main.cpp +++ b/examples/example_glfw_vulkan/main.cpp @@ -108,6 +108,7 @@ static void SetupVulkan(const char** extensions, uint32_t extensions_count) // Create Vulkan Instance without any debug feature err = vkCreateInstance(&create_info, g_Allocator, &g_Instance); check_vk_result(err); + IM_UNUSED(g_DebugReport); #endif } @@ -142,7 +143,7 @@ static void SetupVulkan(const char** extensions, uint32_t extensions_count) break; } free(queues); - IM_ASSERT(g_QueueFamily != -1); + IM_ASSERT(g_QueueFamily != (uint32_t)-1); } // Create Logical Device (with 1 queue) diff --git a/examples/example_sdl_vulkan/main.cpp b/examples/example_sdl_vulkan/main.cpp index ad789462..812d0988 100644 --- a/examples/example_sdl_vulkan/main.cpp +++ b/examples/example_sdl_vulkan/main.cpp @@ -100,6 +100,7 @@ static void SetupVulkan(const char** extensions, uint32_t extensions_count) // Create Vulkan Instance without any debug feature err = vkCreateInstance(&create_info, g_Allocator, &g_Instance); check_vk_result(err); + IM_UNUSED(g_DebugReport); #endif } @@ -134,7 +135,7 @@ static void SetupVulkan(const char** extensions, uint32_t extensions_count) break; } free(queues); - IM_ASSERT(g_QueueFamily != -1); + IM_ASSERT(g_QueueFamily != (uint32_t)-1); } // Create Logical Device (with 1 queue)