Disable some PVS studio warnings.

V1048: While they are technically correct we want to emphasize assigned values must remain same.
This commit is contained in:
Rokas Kupstys 2020-01-09 13:47:42 +02:00 committed by omar
parent 4ee7aa72e9
commit ae1e3619f6

View File

@ -4197,7 +4197,7 @@ void ImGui::Render()
g.FrameCountRendered = g.FrameCount;
// Gather ImDrawList to render (for each active window)
g.IO.MetricsRenderVertices = g.IO.MetricsRenderIndices = g.IO.MetricsRenderWindows = 0;
g.IO.MetricsRenderWindows = 0;
g.DrawDataBuilder.Clear();
if (!g.BackgroundDrawList.VtxBuffer.empty())
AddDrawListToDrawData(&g.DrawDataBuilder.Layers[0], &g.BackgroundDrawList);
@ -8363,7 +8363,7 @@ static void ImGui::NavUpdate()
IM_ASSERT(child_window->ChildId != 0);
FocusWindow(parent_window);
SetNavID(child_window->ChildId, 0);
g.NavIdIsAlive = false;
g.NavIdIsAlive = false; // -V1048: Reassigning with same value, we're being explicit here.
if (g.NavDisableMouseHover)
g.NavMousePosDirty = true;
}
@ -8453,7 +8453,7 @@ static void ImGui::NavUpdate()
{
//IMGUI_DEBUG_LOG("[Nav] NavInitRequest from move, window \"%s\", layer=%d\n", g.NavWindow->Name, g.NavLayer);
g.NavInitRequest = g.NavInitRequestFromMove = true;
g.NavInitResultId = 0;
g.NavInitResultId = 0; // -V1048: Reassigning with same value, we're being explicit here.
g.NavDisableHighlight = false;
}
NavUpdateAnyRequestFlag();