From e3488fcae274ad19b4d6f8a90e9efd5253cd2a2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Sch=C3=A4pers?= Date: Mon, 24 Jun 2019 14:13:16 +0200 Subject: [PATCH] Fix Warning QtCreator (4.9) Clang Code Model (Clang 7) gives the warning:core.h:404:11: error: an attribute list cannot appear here core.h:116:24: note: expanded from macro 'FMT_NORETURN' --- 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 42e47b98..52c812be 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -401,7 +401,7 @@ struct error_handler { FMT_CONSTEXPR error_handler(const error_handler&) {} // This function is intentionally not constexpr to give a compile-time error. - FMT_API FMT_NORETURN void on_error(const char* message); + FMT_NORETURN FMT_API void on_error(const char* message); }; } // namespace internal