diff options
author | gabime <gmelman1@gmail.comx> | 2022-10-31 18:03:53 +0300 |
---|---|---|
committer | gabime <gmelman1@gmail.comx> | 2022-10-31 18:03:53 +0300 |
commit | 9125bda30179fc0867c676c1bd5553bea8f44713 (patch) | |
tree | debbaa4c715b5a45ae8efa6129b9dffff6f19a07 | |
parent | 8a0b2231b17ff0c084d7319a8631a84bd89181f1 (diff) |
suppress "integral constant overflow" warning under msvc 2017
-rw-r--r-- | src/bundled_fmtlib_format.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/bundled_fmtlib_format.cpp b/src/bundled_fmtlib_format.cpp index 51d5e073..ada16cd7 100644 --- a/src/bundled_fmtlib_format.cpp +++ b/src/bundled_fmtlib_format.cpp @@ -7,8 +7,19 @@ #endif #if !defined(SPDLOG_FMT_EXTERNAL) && !defined(SPDLOG_USE_STD_FORMAT) + +// suppress "integral constant overflow" warning under msvc 2017 (which doesn't appear in other msvc versions) +#if defined(_MSC_VER) && (_MSC_VER >= 1910) && (_MSC_VER <= 1916) +# pragma warning(push) +# pragma warning(disable : 4307) +#endif # include <spdlog/fmt/bundled/format-inl.h> +#if defined(_MSC_VER) +# pragma warning(pop) +#endif + + FMT_BEGIN_NAMESPACE namespace detail { |