diff --git a/src/core/include/mp-units/bits/fmt.h b/src/core/include/mp-units/bits/fmt.h index c4572a9c..b12058b6 100644 --- a/src/core/include/mp-units/bits/fmt.h +++ b/src/core/include/mp-units/bits/fmt.h @@ -48,6 +48,12 @@ import std; #endif #endif + +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable : 4702) +#endif + // most of the below code is based on/copied from fmtlib namespace mp_units::detail { @@ -390,4 +396,9 @@ template } } // namespace mp_units::detail + +#ifdef _MSC_VER +#pragma warning( pop ) +#endif + // NOLINTEND(cppcoreguidelines-pro-bounds-pointer-arithmetic, cppcoreguidelines-pro-type-union-access)