From 20aaf33c6ccd5809688f25d9d2bc7cf190983777 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Tue, 17 Aug 2021 10:32:18 +0200 Subject: [PATCH] :alembic: update warning flags --- test/src/unit-items.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/src/unit-items.cpp b/test/src/unit-items.cpp index 6ecd90d7b..f101b31f9 100644 --- a/test/src/unit-items.cpp +++ b/test/src/unit-items.cpp @@ -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