snapshot: try to suppress a warning from older versions of gcc

This commit is contained in:
Michele Caini
2023-06-20 12:15:14 +02:00
parent f532807d62
commit 6594da85f1

View File

@@ -172,8 +172,8 @@ public:
basic_snapshot_loader(registry_type &source) noexcept
: reg{&source} {
// restoring a snapshot as a whole requires a clean registry
for([[maybe_unused]] auto [id, elem]: source.storage()) {
ENTT_ASSERT(elem.empty(), "Registry must be empty");
for([[maybe_unused]] auto elem: source.storage()) {
ENTT_ASSERT(elem.second.empty(), "Registry must be empty");
}
}