Forráskód Böngészése

test: no leak here clang, but thanks for caring

Michele Caini 1 éve
szülő
commit
6936aa951a
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      test/entt/meta/meta_type.cpp

+ 1 - 0
test/entt/meta/meta_type.cpp

@@ -661,6 +661,7 @@ TEST_F(MetaType, FromVoidOwnership) {
     void *instance = std::make_unique<from_void_callback>(check).release();
     void *instance = std::make_unique<from_void_callback>(check).release();
 
 
     auto any = type.from_void(instance);
     auto any = type.from_void(instance);
+    // NOLINTNEXTLINE(clang-analyzer-cplusplus.NewDeleteLeaks)
     auto other = type.from_void(instance, true);
     auto other = type.from_void(instance, true);
 
 
     ASSERT_TRUE(any);
     ASSERT_TRUE(any);