From 223e2376b6affe211642559952886840f2253fc7 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Thu, 19 Oct 2023 16:23:44 +0200 Subject: [PATCH] test: suppress warnings due to shadow variables --- test/entt/entity/storage.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/entt/entity/storage.cpp b/test/entt/entity/storage.cpp index 5f955dadd..175183718 100644 --- a/test/entt/entity/storage.cpp +++ b/test/entt/entity/storage.cpp @@ -1644,9 +1644,9 @@ TYPED_TEST(Storage, ReferencesGuaranteed) { ASSERT_EQ(pool.get(entt::entity{0}), value_type{0}); ASSERT_EQ(pool.get(entt::entity{1}), value_type{1}); - for(auto &&type: pool) { - if(!(type == value_type{})) { - type = value_type{42}; + for(auto &&elem: pool) { + if(!(elem == value_type{})) { + elem = value_type{42}; } }