From 36ac557df077530f540e58778fedd8e3ef24cd31 Mon Sep 17 00:00:00 2001 From: Patryk Czachurski Date: Sat, 18 Apr 2020 11:09:44 +0200 Subject: [PATCH] Docking: Fix unused variable warning. (#3135) --- imgui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui.cpp b/imgui.cpp index 4ca0c92f..23ce906c 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -14222,6 +14222,7 @@ void ImGui::DockBuilderRemoveNodeDockedWindows(ImGuiID root_id, bool clear_persi if (want_removal) { const ImGuiID backup_dock_id = window->DockId; + IM_UNUSED(backup_dock_id); DockContextProcessUndockWindow(ctx, window, clear_persistent_docking_references); if (!clear_persistent_docking_references) IM_ASSERT(window->DockId == backup_dock_id);