Check for noreturn attribute availabilty
This commit is contained in:
parent
ca13eee19f
commit
ffa45de992
@ -923,7 +923,7 @@ struct IntTraits {
|
||||
TypeSelector<std::numeric_limits<T>::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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user