Disable some PVS studio warnings.
V1048: While they are technically correct we want to emphasize assigned values must remain same.
diff --git a/imgui.cpp b/imgui.cpp
index 549ee75..f659123 100644
--- a/imgui.cpp
+++ b/imgui.cpp
@@ -4197,7 +4197,7 @@
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 @@
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 @@
{
//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();