diff --git a/src/entt/entity/group.hpp b/src/entt/entity/group.hpp index 40d00fdd3..8efb84d9d 100644 --- a/src/entt/entity/group.hpp +++ b/src/entt/entity/group.hpp @@ -459,7 +459,7 @@ class basic_group, Owned...> { template void traverse(Func func, type_list, type_list) const { - auto raw = std::make_tuple((std::get *>(pools)->end() - *length)...); + [[maybe_unused]] auto raw = std::make_tuple((std::get *>(pools)->end() - *length)...); [[maybe_unused]] auto data = std::get<0>(pools)->sparse_set::end() - *length; for(auto next = *length; next; --next) {