Workaround bogus unreachable warnings in MSVC

This commit is contained in:
Victor Zverovich 2019-04-11 09:41:38 -07:00
parent a4969ebe06
commit ccd70f59ee

View File

@ -143,7 +143,8 @@
# endif # endif
#endif #endif
#if FMT_EXCEPTIONS && FMT_HAS_CPP_ATTRIBUTE(noreturn) // [[noreturn]] is disabled on MSVC because of bogus unreachable code warnings.
#if FMT_EXCEPTIONS && FMT_HAS_CPP_ATTRIBUTE(noreturn) && !FMT_MSC_VER
# define FMT_NORETURN [[noreturn]] # define FMT_NORETURN [[noreturn]]
#else #else
# define FMT_NORETURN # define FMT_NORETURN