diff --git a/src/entt/entity/sparse_set.hpp b/src/entt/entity/sparse_set.hpp index e683b554d..d54185181 100644 --- a/src/entt/entity/sparse_set.hpp +++ b/src/entt/entity/sparse_set.hpp @@ -358,7 +358,7 @@ public: * @brief Returns the deletion policy of a sparse set. * @return The deletion policy of the sparse set. */ - deletion_policy policy() const ENTT_NOEXCEPT { + [[nodiscard]] deletion_policy policy() const ENTT_NOEXCEPT { return mode; }