Browse Source

test: no leak here clang, but thanks for caring

Michele Caini 1 year ago
parent
commit
6936aa951a
1 changed files with 1 additions and 0 deletions
  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);