Explorar el Código

test: suppress warnings due to unused variables

Michele Caini hace 3 años
padre
commit
3c176f7258
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      test/entt/entity/registry.cpp

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

@@ -1356,8 +1356,8 @@ TEST(Registry, NestedGroups) {
 ENTT_DEBUG_TEST(Registry, ConflictingGroups) {
     entt::registry registry;
 
-    [[maybe_unused]] auto group = registry.group<char>(entt::get<int>, entt::exclude<double>);
-    ASSERT_DEATH(auto other = registry.group<char>(entt::get<float>, entt::exclude<double>), "");
+    registry.group<char>(entt::get<int>, entt::exclude<double>);
+    ASSERT_DEATH(registry.group<char>(entt::get<float>, entt::exclude<double>), "");
 }
 
 TEST(Registry, SortSingle) {