diff --git a/tests/src/unit-regression2.cpp b/tests/src/unit-regression2.cpp index cb1f44fdd..6b0dda4df 100644 --- a/tests/src/unit-regression2.cpp +++ b/tests/src/unit-regression2.cpp @@ -1240,3 +1240,5 @@ TEST_CASE("regression tests 2") } #endif } + +DOCTEST_CLANG_SUPPRESS_WARNING_POP diff --git a/tests/src/unit-regression3.cpp b/tests/src/unit-regression3.cpp index eafa5935b..192baa32e 100644 --- a/tests/src/unit-regression3.cpp +++ b/tests/src/unit-regression3.cpp @@ -32,6 +32,10 @@ using ordered_json = nlohmann::ordered_json; #include #include +// NLOHMANN_JSON_SERIALIZE_ENUM uses a static std::pair +DOCTEST_CLANG_SUPPRESS_WARNING_PUSH +DOCTEST_CLANG_SUPPRESS_WARNING("-Wexit-time-destructors") + TEST_CASE_TEMPLATE("issue #4798 - nlohmann::json::to_msgpack() encode float NaN as double", T, double, float) // NOLINT(readability-math-missing-parentheses, bugprone-throwing-static-initialization) { // With issue #4798, we encode NaN, infinity, and -infinity as float instead