Sfoglia il codice sorgente

test: clang triggers a false positive, but doesn't even want me to suppress it

Michele Caini 1 anno fa
parent
commit
c506fd6f5e
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      test/entt/entity/registry.cpp

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

@@ -1477,6 +1477,7 @@ TEST(Registry, GetOrEmplace) {
     const auto value = registry.get_or_emplace<int>(entity, 3);
     const auto value = registry.get_or_emplace<int>(entity, 3);
 
 
     // get_or_emplace must work for empty types
     // get_or_emplace must work for empty types
+    // NOLINTNEXTLINE(readability-redundant-casting)
     static_cast<void>(registry.get_or_emplace<test::empty>(entity));
     static_cast<void>(registry.get_or_emplace<test::empty>(entity));
 
 
     ASSERT_TRUE((registry.all_of<int, test::empty>(entity)));
     ASSERT_TRUE((registry.all_of<int, test::empty>(entity)));