diff --git a/format.h b/format.h index af3e4231..4e06c8ff 100644 --- a/format.h +++ b/format.h @@ -62,6 +62,10 @@ # pragma GCC diagnostic ignored "-Wlong-long" #endif +#if _MSC_VER +# pragma warning(push) +# pragma warning(disable: 4521) +#endif namespace fmt { namespace internal { @@ -1244,4 +1248,8 @@ inline Formatter Print(StringRef format) { # pragma GCC diagnostic pop #endif +#if _MSC_VER +# pragma warning(pop) +#endif + #endif // FORMAT_H_