Browse Source

test: suppress warnings due to unused variables

Michele Caini 3 years ago
parent
commit
c19c848c46
2 changed files with 0 additions and 4 deletions
  1. 0 1
      test/entt/entity/storage.cpp
  2. 0 3
      test/entt/entity/storage_entity.cpp

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

@@ -351,7 +351,6 @@ TEST_F(Storage, Insert) {
 TEST_F(Storage, InsertEmptyType) {
     entt::storage<empty_stable_type> pool;
     entt::entity entities[2u]{entt::entity{3}, entt::entity{42}};
-    const entt::sparse_set &base = pool;
 
     pool.insert(std::begin(entities), std::end(entities));
 

+ 0 - 3
test/entt/entity/storage_entity.cpp

@@ -223,11 +223,8 @@ TEST(StorageEntity, Emplace) {
 }
 
 TEST(StorageEntity, Insert) {
-    using traits_type = entt::entt_traits<entt::entity>;
-
     entt::storage<entt::entity> pool;
     entt::entity entities[2u]{};
-    const entt::sparse_set &base = pool;
 
     pool.insert(std::begin(entities), std::end(entities));