diff --git a/src/common/fiber.cpp b/src/common/fiber.cpp index 1e91d6f25a..b9c87686cf 100644 --- a/src/common/fiber.cpp +++ b/src/common/fiber.cpp @@ -94,7 +94,7 @@ void Fiber::YieldTo(std::weak_ptr weak_from, Fiber& to) { auto& next_fiber_ptr = from->impl->next_fiber_ptr; next_fiber_ptr = &from->impl->next_fiber; *next_fiber_ptr = &to; - for ([[maybe_unused]] unsigned round = 0; *next_fiber_ptr; round++) { + while (*next_fiber_ptr) { auto next = *next_fiber_ptr; *next_fiber_ptr = nullptr; next_fiber_ptr = &next->impl->next_fiber;