mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-24 14:42:13 +08:00
suppress "integral constant overflow" warning under msvc 2017
This commit is contained in:
parent
8a0b2231b1
commit
9125bda301
@ -7,8 +7,19 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(SPDLOG_FMT_EXTERNAL) && !defined(SPDLOG_USE_STD_FORMAT)
|
#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>
|
# include <spdlog/fmt/bundled/format-inl.h>
|
||||||
|
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
# pragma warning(pop)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
FMT_BEGIN_NAMESPACE
|
FMT_BEGIN_NAMESPACE
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user