From 44e1f9f6829cd8acbfea282d390560452e889aff Mon Sep 17 00:00:00 2001 From: gabime Date: Wed, 17 Mar 2021 00:25:26 +0200 Subject: [PATCH] Added nonreturn sepcifier to fix #1748 --- include/spdlog/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 2ba355c7..5e6acfd2 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -206,8 +206,8 @@ private: std::string msg_; }; -SPDLOG_API void throw_spdlog_ex(const std::string &msg, int last_errno); -SPDLOG_API void throw_spdlog_ex(std::string msg); +[[noreturn]] SPDLOG_API void throw_spdlog_ex(const std::string &msg, int last_errno); +[[noreturn]] SPDLOG_API void throw_spdlog_ex(std::string msg); struct source_loc {