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);