Browse Source

test: avoid warnings due to unused variables

Michele Caini 2 years ago
parent
commit
dd3feb87cd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/entt/entity/group.cpp

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

@@ -1491,7 +1491,7 @@ TEST(OwningGroup, SwapElements) {
     ASSERT_EQ(registry.storage<int>().index(entity[0u]), 1u);
     ASSERT_EQ(registry.storage<int>().index(entity[0u]), 1u);
     ASSERT_EQ(registry.storage<char>().index(entity[0u]), 1u);
     ASSERT_EQ(registry.storage<char>().index(entity[0u]), 1u);
 
 
-    const auto group = registry.group<int>(entt::get<char>);
+    registry.group<int>(entt::get<char>);
 
 
     ASSERT_EQ(registry.storage<int>().index(entity[0u]), 0u);
     ASSERT_EQ(registry.storage<int>().index(entity[0u]), 0u);
     ASSERT_EQ(registry.storage<char>().index(entity[0u]), 1u);
     ASSERT_EQ(registry.storage<char>().index(entity[0u]), 1u);