From db6c6573afcf81e1e12d2f559b87717c4f722c2b Mon Sep 17 00:00:00 2001 From: skypjack Date: Tue, 17 Jun 2025 15:27:11 +0200 Subject: [PATCH] scheduler: suppress warnings due to shadow variables --- src/entt/process/scheduler.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entt/process/scheduler.hpp b/src/entt/process/scheduler.hpp index c7b55ef7c..2fb430418 100644 --- a/src/entt/process/scheduler.hpp +++ b/src/entt/process/scheduler.hpp @@ -309,8 +309,8 @@ public: if(const auto pos = next - 1u; update(pos, delta, data)) { // updating might spawn/reallocate, cannot hold refs until here if(auto &curr = handlers.first()[pos]; curr.next) { - auto next = curr.next; - curr = std::move(*next); + auto elem = curr.next; + curr = std::move(*elem); } else { curr = std::move(handlers.first().back()); handlers.first().pop_back();