Browse Source

test: minor changes

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

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

@@ -16,7 +16,7 @@ struct boxed_int { int value; };
 TEST(SparseSet, Functionalities) {
     entt::sparse_set set;
 
-    ASSERT_NO_THROW(auto alloc = set.get_allocator());
+    ASSERT_NO_THROW([[maybe_unused]] auto alloc = set.get_allocator());
 
     set.reserve(42);
 

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

@@ -55,7 +55,7 @@ bool operator==(const boxed_int &lhs, const boxed_int &rhs) {
 TEST(Storage, Functionalities) {
     entt::storage<int> pool;
 
-    ASSERT_NO_THROW(auto alloc = pool.get_allocator());
+    ASSERT_NO_THROW([[maybe_unused]] auto alloc = pool.get_allocator());
 
     pool.reserve(42);
 
@@ -149,7 +149,7 @@ TEST(Storage, EmptyType) {
     entt::storage<empty_type> pool;
     pool.emplace(entt::entity{99});
 
-    ASSERT_NO_THROW(auto alloc = pool.get_allocator());
+    ASSERT_NO_THROW([[maybe_unused]] auto alloc = pool.get_allocator());
     ASSERT_TRUE(pool.contains(entt::entity{99}));
 }