From a3ebd160cbedd2f62ca56448400054f3c5873188 Mon Sep 17 00:00:00 2001 From: "C.Even" Date: Thu, 11 Mar 2021 17:04:50 +0800 Subject: [PATCH] Fix unused variable warning in ImGui::EndListBox() (#3897) --- imgui_widgets.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui_widgets.cpp b/imgui_widgets.cpp index 9db106e1..0d4a2d4a 100644 --- a/imgui_widgets.cpp +++ b/imgui_widgets.cpp @@ -6220,6 +6220,7 @@ void ImGui::EndListBox() ImGuiContext& g = *GImGui; ImGuiWindow* window = g.CurrentWindow; IM_ASSERT((window->Flags & ImGuiWindowFlags_ChildWindow) && "Mismatched BeginListBox/EndListBox calls. Did you test the return value of BeginListBox?"); + IM_UNUSED(window); EndChildFrame(); EndGroup(); // This is only required to be able to do IsItemXXX query on the whole ListBox including label