From 6d7795396fd5d1854049b705fb5d253072b7fe01 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Tue, 17 Aug 2021 11:28:11 +0200 Subject: [PATCH] :alembic: update warning flags --- test/src/unit-conversions.cpp | 6 ++++++ test/src/unit-regression2.cpp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/test/src/unit-conversions.cpp b/test/src/unit-conversions.cpp index 4a544ea3f..c9b498de0 100644 --- a/test/src/unit-conversions.cpp +++ b/test/src/unit-conversions.cpp @@ -48,6 +48,10 @@ using nlohmann::json; #define JSON_HAS_CPP_14 #endif +// NLOHMANN_JSON_SERIALIZE_ENUM uses a static std::pair +DOCTEST_GCC_SUPPRESS_WARNING_PUSH +DOCTEST_GCC_SUPPRESS_WARNING("-Wexit-time-destructors") + TEST_CASE("value conversion") { SECTION("get an object (explicit)") @@ -1712,3 +1716,5 @@ TEST_CASE("JSON to enum mapping") #ifdef JSON_HAS_CPP_14 #undef JSON_HAS_CPP_14 #endif + +DOCTEST_GCC_SUPPRESS_WARNING_POP diff --git a/test/src/unit-regression2.cpp b/test/src/unit-regression2.cpp index c13513764..d0f85ae3a 100644 --- a/test/src/unit-regression2.cpp +++ b/test/src/unit-regression2.cpp @@ -53,6 +53,10 @@ using nlohmann::json; #include #endif +// NLOHMANN_JSON_SERIALIZE_ENUM uses a static std::pair +DOCTEST_GCC_SUPPRESS_WARNING_PUSH +DOCTEST_GCC_SUPPRESS_WARNING("-Wexit-time-destructors") + ///////////////////////////////////////////////////////////////////// // for #1021 ///////////////////////////////////////////////////////////////////// @@ -656,3 +660,5 @@ TEST_CASE("regression tests 2") static_assert(std::is_copy_assignable::value, ""); } } + +DOCTEST_GCC_SUPPRESS_WARNING_POP