⚗️ update warning flags

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

View File

@ -41,6 +41,10 @@ using nlohmann::json;
#include <iomanip>
#include <test_data.hpp>
// 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

View File

@ -41,6 +41,10 @@ using nlohmann::json;
#include <iomanip>
#include <test_data.hpp>
// 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

View File

@ -41,6 +41,10 @@ using nlohmann::json;
#include <iomanip>
#include <test_data.hpp>
// 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