⚗️ update warning flags

This commit is contained in:
Niels Lohmann 2021-08-17 11:28:11 +02:00
parent 23c79b0fc3
commit 6d7795396f
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
2 changed files with 12 additions and 0 deletions

View File

@ -48,6 +48,10 @@ using nlohmann::json;
#define JSON_HAS_CPP_14 #define JSON_HAS_CPP_14
#endif #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") TEST_CASE("value conversion")
{ {
SECTION("get an object (explicit)") SECTION("get an object (explicit)")
@ -1712,3 +1716,5 @@ TEST_CASE("JSON to enum mapping")
#ifdef JSON_HAS_CPP_14 #ifdef JSON_HAS_CPP_14
#undef JSON_HAS_CPP_14 #undef JSON_HAS_CPP_14
#endif #endif
DOCTEST_GCC_SUPPRESS_WARNING_POP

View File

@ -53,6 +53,10 @@ using nlohmann::json;
#include <span> #include <span>
#endif #endif
// NLOHMANN_JSON_SERIALIZE_ENUM uses a static std::pair
DOCTEST_GCC_SUPPRESS_WARNING_PUSH
DOCTEST_GCC_SUPPRESS_WARNING("-Wexit-time-destructors")
///////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////
// for #1021 // for #1021
///////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////
@ -656,3 +660,5 @@ TEST_CASE("regression tests 2")
static_assert(std::is_copy_assignable<nlohmann::ordered_json>::value, ""); static_assert(std::is_copy_assignable<nlohmann::ordered_json>::value, "");
} }
} }
DOCTEST_GCC_SUPPRESS_WARNING_POP