瀏覽代碼

Fix unused variable warning in ImGui::EndListBox() (#3897)

C.Even 4 年之前
父節點
當前提交
a3ebd160cb
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      imgui_widgets.cpp

+ 1 - 0
imgui_widgets.cpp

@@ -6220,6 +6220,7 @@ void ImGui::EndListBox()
     ImGuiContext& g = *GImGui;
     ImGuiContext& g = *GImGui;
     ImGuiWindow* window = g.CurrentWindow;
     ImGuiWindow* window = g.CurrentWindow;
     IM_ASSERT((window->Flags & ImGuiWindowFlags_ChildWindow) && "Mismatched BeginListBox/EndListBox calls. Did you test the return value of BeginListBox?");
     IM_ASSERT((window->Flags & ImGuiWindowFlags_ChildWindow) && "Mismatched BeginListBox/EndListBox calls. Did you test the return value of BeginListBox?");
+    IM_UNUSED(window);
 
 
     EndChildFrame();
     EndChildFrame();
     EndGroup(); // This is only required to be able to do IsItemXXX query on the whole ListBox including label
     EndGroup(); // This is only required to be able to do IsItemXXX query on the whole ListBox including label