From ffa45de992f8d8e2ab2afc14f8e00ba8d1620adb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rio=20Feroldi?= Date: Thu, 20 Jul 2017 16:22:49 -0300 Subject: [PATCH] Check for noreturn attribute availabilty --- fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fmt/format.h b/fmt/format.h index f4128df1..1427218b 100644 --- a/fmt/format.h +++ b/fmt/format.h @@ -923,7 +923,7 @@ struct IntTraits { TypeSelector::digits <= 32>::Type MainType; }; -#if FMT_HAS_GXX_CXX11 +#if FMT_HAS_CPP_ATTRIBUTE(noreturn) FMT_API [[noreturn]] void report_unknown_type(char code, const char *type); #else FMT_API void report_unknown_type(char code, const char *type);