Visual Studio: Fix C4702: unreachable code in pedantic mode

This commit is contained in:
Ivan Shynkarenka 2019-04-08 20:45:16 +03:00
parent aeb5ad3ce1
commit 43107463df

View File

@ -57,6 +57,11 @@
# define FMT_CUDA_VERSION 0 # define FMT_CUDA_VERSION 0
#endif #endif
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable: 4702) // C4702: unreachable code
#endif
#include "core.h" #include "core.h"
#if FMT_GCC_VERSION >= 406 || FMT_CLANG_VERSION #if FMT_GCC_VERSION >= 406 || FMT_CLANG_VERSION
@ -3723,4 +3728,8 @@ FMT_END_NAMESPACE
# pragma GCC diagnostic pop # pragma GCC diagnostic pop
#endif #endif
#if defined(_MSC_VER)
#pragma warning(pop)
#endif
#endif // FMT_FORMAT_H_ #endif // FMT_FORMAT_H_