[msvc][fix] disable C4702 unreachable code

This commit is contained in:
Jonas Hoppe
2024-09-03 09:45:41 +02:00
parent 924782f557
commit cea5d70dc0
+11
View File
@@ -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<typename Char, typename Specs>
}
} // namespace mp_units::detail
#ifdef _MSC_VER
#pragma warning( pop )
#endif
// NOLINTEND(cppcoreguidelines-pro-bounds-pointer-arithmetic, cppcoreguidelines-pro-type-union-access)