From ea1c82976446378b4e9d9fbceee92fbb4623365b Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 23 Sep 2023 01:53:03 +0300 Subject: [PATCH] fix warning --- include/spdlog/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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_;