diff --git a/src/entt/entity/registry.hpp b/src/entt/entity/registry.hpp index e49f0212d..5c55fada7 100644 --- a/src/entt/entity/registry.hpp +++ b/src/entt/entity/registry.hpp @@ -830,7 +830,7 @@ public: * @return True if the entity is part of all the storage, false otherwise. */ template - [[nodiscard]] bool all_of(const entity_type entt) const { + [[nodiscard]] bool all_of([[maybe_unused]] const entity_type entt) const { if constexpr(sizeof...(Type) == 1u) { auto *cpool = assure...>(); return cpool && cpool->contains(entt); @@ -847,7 +847,7 @@ public: * otherwise. */ template - [[nodiscard]] bool any_of(const entity_type entt) const { + [[nodiscard]] bool any_of([[maybe_unused]] const entity_type entt) const { return (all_of(entt) || ...); }