Browse Source

test: suppress a wrong warning with toolset v141

Michele Caini 4 years ago
parent
commit
6f20dd4e45
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/entt/entity/registry.cpp

+ 1 - 1
test/entt/entity/registry.cpp

@@ -1762,7 +1762,7 @@ TEST(Registry, GetOrEmplace) {
     const auto entity = registry.create();
     const auto value = registry.get_or_emplace<int>(entity, 3);
     // get_or_emplace must work for empty types
-    registry.get_or_emplace<empty_type>(entity);
+    static_cast<void>(registry.get_or_emplace<empty_type>(entity));
 
     ASSERT_TRUE((registry.all_of<int, empty_type>(entity)));
     ASSERT_EQ(registry.get<int>(entity), value);