⚗️ update warning flags

This commit is contained in:
Niels Lohmann 2021-08-17 10:32:18 +02:00
parent e3206b0bb8
commit 20aaf33c6c
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69

View File

@ -39,6 +39,10 @@ using nlohmann::json;
#define JSON_HAS_CPP_14
#endif
// This test suite uses range for loops where values are copied. This is inefficient in usual code, but required to achieve 100% coverage.
DOCTEST_MSVC_SUPPRESS_WARNING_PUSH
DOCTEST_MSVC_SUPPRESS_WARNING(-Wrange-loop-construct)
TEST_CASE("iterator_wrapper")
{
SECTION("object")
@ -1456,3 +1460,5 @@ TEST_CASE("items()")
#ifdef JSON_HAS_CPP_14
#undef JSON_HAS_CPP_14
#endif
DOCTEST_MSVC_SUPPRESS_WARNING_POP