From 6f20dd4e45cdf23d90a85f33e41e3de158b19af0 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Wed, 29 Sep 2021 11:09:37 +0200 Subject: [PATCH] test: suppress a wrong warning with toolset v141 --- test/entt/entity/registry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/entt/entity/registry.cpp b/test/entt/entity/registry.cpp index 8fbc70332..e6e302e38 100644 --- a/test/entt/entity/registry.cpp +++ b/test/entt/entity/registry.cpp @@ -1762,7 +1762,7 @@ TEST(Registry, GetOrEmplace) { const auto entity = registry.create(); const auto value = registry.get_or_emplace(entity, 3); // get_or_emplace must work for empty types - registry.get_or_emplace(entity); + static_cast(registry.get_or_emplace(entity)); ASSERT_TRUE((registry.all_of(entity))); ASSERT_EQ(registry.get(entity), value);