Kaynağa Gözat

test: suppress a warning by clang

Michele Caini 1 yıl önce
ebeveyn
işleme
6ede10fa47
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      test/entt/entity/snapshot.cpp

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

@@ -141,7 +141,7 @@ TEST(BasicSnapshot, GetPointerStableType) {
     constexpr auto number_of_entities = 3u;
     constexpr auto number_of_entities = 3u;
 
 
     std::array<entt::entity, number_of_entities> entity{};
     std::array<entt::entity, number_of_entities> entity{};
-    const std::array<test::pointer_stable, number_of_entities> value{1, 2, 3};
+    const std::array value{test::pointer_stable{1}, test::pointer_stable{2}, test::pointer_stable{3}};
 
 
     registry.create(entity.begin(), entity.end());
     registry.create(entity.begin(), entity.end());
     registry.insert<test::pointer_stable>(entity.begin(), entity.end(), value.begin());
     registry.insert<test::pointer_stable>(entity.begin(), entity.end(), value.begin());