From 6ccb2e241b57a3a993f794f19e4b7ceb14b56d1f Mon Sep 17 00:00:00 2001 From: refnum <68672+refnum@users.noreply.github.com> Date: Sun, 1 Mar 2020 01:17:55 +0000 Subject: [PATCH] Add FMT_NORETURN to assert_fail prototype. (#1569) When building with -Werror,-Wmissing-noreturn clang identifies that assert_fail could be declared with the 'noreturn' attribute. --- include/fmt/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 76fedf05..a107db3c 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -253,7 +253,7 @@ namespace internal { // A workaround for gcc 4.8 to make void_t work in a SFINAE context. template struct void_t_impl { using type = void; }; -FMT_API void assert_fail(const char* file, int line, const char* message); +FMT_NORETURN FMT_API void assert_fail(const char* file, int line, const char* message); #ifndef FMT_ASSERT # ifdef NDEBUG