mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-30 20:51:06 +01:00 
			
		
		
		
	Fixed unreferenced variable warnings.
This commit is contained in:
		| @@ -3747,9 +3747,9 @@ bool ImGui::BeginPopupModal(const char* name, bool* p_open, ImGuiWindowFlags ext | |||||||
|  |  | ||||||
| void ImGui::EndPopup() | void ImGui::EndPopup() | ||||||
| { | { | ||||||
|     ImGuiWindow* window = GetCurrentWindow(); |     ImGuiContext& g = *GImGui; (void)g; | ||||||
|     IM_ASSERT(window->Flags & ImGuiWindowFlags_Popup);  // Mismatched BeginPopup()/EndPopup() calls |     IM_ASSERT(g.CurrentWindow->Flags & ImGuiWindowFlags_Popup);  // Mismatched BeginPopup()/EndPopup() calls | ||||||
|     IM_ASSERT(GImGui->CurrentPopupStack.Size > 0); |     IM_ASSERT(g.CurrentPopupStack.Size > 0); | ||||||
|     End(); |     End(); | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -4278,7 +4278,6 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) | |||||||
|             window->WindowPadding = ImVec2(0.0f, (flags & ImGuiWindowFlags_MenuBar) ? style.WindowPadding.y : 0.0f); |             window->WindowPadding = ImVec2(0.0f, (flags & ImGuiWindowFlags_MenuBar) ? style.WindowPadding.y : 0.0f); | ||||||
|         const float window_rounding = window->WindowRounding; |         const float window_rounding = window->WindowRounding; | ||||||
|         const float window_border_size = window->WindowBorderSize; |         const float window_border_size = window->WindowBorderSize; | ||||||
|         const ImVec2 window_padding = window->WindowPadding; |  | ||||||
|  |  | ||||||
|         // Calculate auto-fit size, handle automatic resize |         // Calculate auto-fit size, handle automatic resize | ||||||
|         const ImVec2 size_auto_fit = CalcSizeAutoFit(window); |         const ImVec2 size_auto_fit = CalcSizeAutoFit(window); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user