[msvc][fix] disable C4702 unreachable code

This commit is contained in:
Jonas Hoppe
2024-08-30 13:33:16 +02:00
parent 924782f557
commit cea5d70dc0

View File

@@ -48,6 +48,12 @@ import std;
#endif #endif
#endif #endif
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4702)
#endif
// most of the below code is based on/copied from fmtlib // most of the below code is based on/copied from fmtlib
namespace mp_units::detail { namespace mp_units::detail {
@@ -390,4 +396,9 @@ template<typename Char, typename Specs>
} }
} // namespace mp_units::detail } // namespace mp_units::detail
#ifdef _MSC_VER
#pragma warning( pop )
#endif
// NOLINTEND(cppcoreguidelines-pro-bounds-pointer-arithmetic, cppcoreguidelines-pro-type-union-access) // NOLINTEND(cppcoreguidelines-pro-bounds-pointer-arithmetic, cppcoreguidelines-pro-type-union-access)