diff --git a/src/uvw/lib.h b/src/uvw/lib.h index d27182c7..fc14b48e 100644 --- a/src/uvw/lib.h +++ b/src/uvw/lib.h @@ -53,7 +53,7 @@ public: * @brief Returns the last error message, if any. * @return The last error message, if any. */ - const char *error() const noexcept; + [[nodiscard]] const char *error() const noexcept; private: bool opened;