Commit ccd70f59 authored by Victor Zverovich's avatar Victor Zverovich

Workaround bogus unreachable warnings in MSVC

parent a4969ebe
...@@ -143,7 +143,8 @@ ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment