From d19f8b72f94e5db2b4c601a42def928f728a1f86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sat, 6 Jun 2026 14:24:16 +0200 Subject: [PATCH] Warning fixes --- GPU/Common/DrawEngineCommon.cpp | 3 +++ UI/ImDebugger/ImDebugger.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/GPU/Common/DrawEngineCommon.cpp b/GPU/Common/DrawEngineCommon.cpp index efe7db8f42..675c6ed857 100644 --- a/GPU/Common/DrawEngineCommon.cpp +++ b/GPU/Common/DrawEngineCommon.cpp @@ -390,6 +390,9 @@ static bool TestBoundingBoxFast(const float *cullMatrix, const void *vdata, cons data = (const s8 *)srcdata + idx * stride; break; } + default: + // We just increment data at the end of the loop. + break; } Vec4F32 objPos; diff --git a/UI/ImDebugger/ImDebugger.cpp b/UI/ImDebugger/ImDebugger.cpp index d9710691fd..2db1dc8d8e 100644 --- a/UI/ImDebugger/ImDebugger.cpp +++ b/UI/ImDebugger/ImDebugger.cpp @@ -1608,7 +1608,7 @@ void ImLogWindow::Draw(ImConfig &cfg) { for (int line_no = clipper.DisplayStart; line_no < clipper.DisplayEnd; line_no++) { int n = ring.GetCount() - 1 - line_no; - const std::string_view line = ring.TextAt(n); + const std::string line = ring.TextAt(n); const LogLevel level = ring.LevelAt(n); const u32 color = 0xFF000000 | LogManager::GetLevelColor(level); ImGui::PushStyleColor(ImGuiCol_Text, color);