diff --git a/include/spdlog/common.h b/include/spdlog/common.h index e71007b2..6ec3f4de 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -236,7 +236,7 @@ class SPDLOG_API spdlog_ex : public std::exception public: explicit spdlog_ex(std::string msg); spdlog_ex(const std::string &msg, int last_errno); - const char *what() const noexcept override; + [[nodiscard]] const char *what() const noexcept override; private: std::string msg_;