summaryrefslogtreecommitdiffhomepage
path: root/test/tile-iter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/tile-iter.cpp')
-rw-r--r--test/tile-iter.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/tile-iter.cpp b/test/tile-iter.cpp
index 43ef6bdf..1142969e 100644
--- a/test/tile-iter.cpp
+++ b/test/tile-iter.cpp
@@ -13,23 +13,22 @@ bool floormat::test_tile_iter() // NOLINT(readability-function-size)
if (always_false())
{
const chunk c;
- for (const auto& [x, k, pt] : c)
+ for ([[maybe_unused]] const auto& [x, k, pt] : c)
static_assert(std::is_same_v<decltype(x), const tile_proto>);
- for (const auto [x, k, pt] : c)
+ for ([[maybe_unused]] const auto [x, k, pt] : c)
static_assert(std::is_same_v<decltype(x), const tile_proto>);
- for (auto [x, k, pt] : c)
+ for ([[maybe_unused]] auto [x, k, pt] : c)
static_assert(std::is_same_v<decltype(x), tile_proto>);
}
if (always_false())
{
chunk c;
- for (auto [x, k, pt] : c)
+ for ([[maybe_unused]] auto [x, k, pt] : c)
static_assert(std::is_same_v<decltype(x), tile_ref>);
- for (const auto [x, k, pt] : c)
+ for ([[maybe_unused]] const auto [x, k, pt] : c)
static_assert(std::is_same_v<decltype(x), const tile_ref>);
}
return true;
}
} // namespace floormat
-