diff --git a/include/date/date.h b/include/date/date.h index 51cea14..b1e3d9a 100644 --- a/include/date/date.h +++ b/include/date/date.h @@ -77,6 +77,12 @@ # endif #endif +#ifdef _MSC_VER +# pragma warning(push) +// warning C4127: conditional expression is constant +# pragma warning(disable : 4127) +#endif + namespace date { @@ -7933,6 +7939,10 @@ operator<<(std::basic_ostream& os, } // namespace date +#ifdef _MSC_VER +# pragma warning(pop) +#endif + #ifdef __GNUC__ # pragma GCC diagnostic pop #endif