From 23c79b0fc3cdf937e7762d99bae03bd4fa363447 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Tue, 17 Aug 2021 11:21:18 +0200 Subject: [PATCH] :alembic: update warning flags --- test/src/unit-unicode3.cpp | 6 ++++++ test/src/unit-unicode4.cpp | 6 ++++++ test/src/unit-unicode5.cpp | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/test/src/unit-unicode3.cpp b/test/src/unit-unicode3.cpp index 81bf89ba0..1cda08f6f 100644 --- a/test/src/unit-unicode3.cpp +++ b/test/src/unit-unicode3.cpp @@ -41,6 +41,10 @@ using nlohmann::json; #include #include +// this test suite uses static variables with non-trivial destructors +DOCTEST_CLANG_SUPPRESS_WARNING_PUSH +DOCTEST_CLANG_SUPPRESS_WARNING("-Wexit-time-destructors") + namespace { extern size_t calls; @@ -337,3 +341,5 @@ TEST_CASE("Unicode (3/5)" * doctest::skip()) } } } + +DOCTEST_CLANG_SUPPRESS_WARNING_POP diff --git a/test/src/unit-unicode4.cpp b/test/src/unit-unicode4.cpp index 2a268c1fb..63990d45c 100644 --- a/test/src/unit-unicode4.cpp +++ b/test/src/unit-unicode4.cpp @@ -41,6 +41,10 @@ using nlohmann::json; #include #include +// this test suite uses static variables with non-trivial destructors +DOCTEST_CLANG_SUPPRESS_WARNING_PUSH +DOCTEST_CLANG_SUPPRESS_WARNING("-Wexit-time-destructors") + namespace { extern size_t calls; @@ -337,3 +341,5 @@ TEST_CASE("Unicode (4/5)" * doctest::skip()) } } } + +DOCTEST_CLANG_SUPPRESS_WARNING_POP diff --git a/test/src/unit-unicode5.cpp b/test/src/unit-unicode5.cpp index abe851469..405227ad3 100644 --- a/test/src/unit-unicode5.cpp +++ b/test/src/unit-unicode5.cpp @@ -41,6 +41,10 @@ using nlohmann::json; #include #include +// this test suite uses static variables with non-trivial destructors +DOCTEST_CLANG_SUPPRESS_WARNING_PUSH +DOCTEST_CLANG_SUPPRESS_WARNING("-Wexit-time-destructors") + namespace { extern size_t calls; @@ -337,3 +341,5 @@ TEST_CASE("Unicode (5/5)" * doctest::skip()) } } } + +DOCTEST_CLANG_SUPPRESS_WARNING_POP