From 2cf108618f117fb943a66c009b7cd49a41e38f1c Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 9 Aug 2026 02:34:23 +1000 Subject: [PATCH] GDBServer: Fix unused capture warning --- src/core/gdb_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/gdb_server.cpp b/src/core/gdb_server.cpp index c5f46688e..3aeb6357b 100644 --- a/src/core/gdb_server.cpp +++ b/src/core/gdb_server.cpp @@ -925,7 +925,7 @@ void GDBServer::ClientSocket::OnBreakpointHit(CPU::BreakpointType type, VirtualM return; const PhysicalMemoryAddress hit_address = CPU::VirtualAddressToPhysical(address); - const auto it = std::ranges::find_if(m_breakpoints, [&type, &address, &hit_address](const ClientBreakpoint& bp) { + const auto it = std::ranges::find_if(m_breakpoints, [&type, &hit_address](const ClientBreakpoint& bp) { if (bp.type == GDBBreakpointType::Software || bp.type == GDBBreakpointType::Hardware) return false; if (bp.type == GDBBreakpointType::Read && type != CPU::BreakpointType::Read)