Skip to content

Commit

Permalink
Silence PVS Studio static analyzer false positives.
Browse files Browse the repository at this point in the history
  • Loading branch information
ocornut committed Sep 28, 2024
1 parent ba14c70 commit 29cff2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10515,7 +10515,7 @@ void ImGui::ErrorRecoveryTryToRecoverWindowState(const ImGuiErrorRecoveryStat
{
ImGuiContext& g = *GImGui;

while (g.CurrentTable != NULL && g.CurrentTable->InnerWindow == g.CurrentWindow)
while (g.CurrentTable != NULL && g.CurrentTable->InnerWindow == g.CurrentWindow) //-V1044
{
IM_ASSERT_USER_ERROR(0, "Missing EndTable()");
EndTable();
Expand All @@ -10529,7 +10529,7 @@ void ImGui::ErrorRecoveryTryToRecoverWindowState(const ImGuiErrorRecoveryStat
IM_ASSERT_USER_ERROR(0, "Missing EndTabBar()");
EndTabBar();
}
while (g.CurrentMultiSelect != NULL && g.CurrentMultiSelect->Storage->Window == window)
while (g.CurrentMultiSelect != NULL && g.CurrentMultiSelect->Storage->Window == window) //-V1044
{
IM_ASSERT_USER_ERROR(0, "Missing EndMultiSelect()");
EndMultiSelect();
Expand Down Expand Up @@ -10562,7 +10562,7 @@ void ImGui::ErrorRecoveryTryToRecoverWindowState(const ImGuiErrorRecoveryStat
}
}
IM_ASSERT(g.DisabledStackSize == state_in->SizeOfDisabledStack);
while (g.ColorStack.Size > state_in->SizeOfColorStack)
while (g.ColorStack.Size > state_in->SizeOfColorStack) //-V1044
{
IM_ASSERT_USER_ERROR(0, "Missing PopStyleColor()");
PopStyleColor();
Expand Down

0 comments on commit 29cff2b

Please sign in to comment.