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);