From 6bd447c885f845776f2e14459e79dc790f493a7b Mon Sep 17 00:00:00 2001 From: ocornut Date: Sun, 22 Aug 2021 18:46:49 +0200 Subject: [PATCH] Backends: GLFW: Fixed unused variable warning for empty assert macro. (#4459) --- backends/imgui_impl_glfw.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/backends/imgui_impl_glfw.cpp b/backends/imgui_impl_glfw.cpp index 2cfbbf7e..29632dcc 100644 --- a/backends/imgui_impl_glfw.cpp +++ b/backends/imgui_impl_glfw.cpp @@ -913,6 +913,7 @@ static int ImGui_ImplGlfw_CreateVkSurface(ImGuiViewport* viewport, ImU64 vk_inst { ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData(); ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData; + IM_UNUSED(bd); IM_ASSERT(bd->ClientApi == GlfwClientApi_Vulkan); VkResult err = glfwCreateWindowSurface((VkInstance)vk_instance, vd->Window, (const VkAllocationCallbacks*)vk_allocator, (VkSurfaceKHR*)out_vk_surface); return (int)err;