diff --git a/src/uvw/uv_type.hpp b/src/uvw/uv_type.hpp index 3dc405c9..4689fdb5 100644 --- a/src/uvw/uv_type.hpp +++ b/src/uvw/uv_type.hpp @@ -29,7 +29,7 @@ struct uv_type { * @brief Gets the loop from which the resource was originated. * @return A reference to a loop instance. */ - loop &parent() const noexcept { + [[nodiscard]] loop &parent() const noexcept { return *owner; } @@ -48,7 +48,7 @@ struct uv_type { * * @return The underlying raw data structure. */ - const U *raw() const noexcept { + [[nodiscard]] const U *raw() const noexcept { return &resource; } @@ -67,7 +67,7 @@ struct uv_type { * * @return The underlying raw data structure. */ - U *raw() noexcept { + [[nodiscard]] U *raw() noexcept { return &resource; }