⚗️ update warning flags

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

View File

@ -38,6 +38,9 @@ using nlohmann::json;
#include <memory>
#include <utility>
DOCTEST_GCC_SUPPRESS_WARNING_PUSH
DOCTEST_GCC_SUPPRESS_WARNING("-Wnoexcept")
namespace udt
{
enum class country
@ -845,3 +848,5 @@ TEST_CASE("Issue #1237")
struct non_convertible_type {};
static_assert(!std::is_convertible<json, non_convertible_type>::value, "");
}
DOCTEST_GCC_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;
@ -623,3 +627,5 @@ TEST_CASE("Unicode (2/5)" * doctest::skip())
}
}
}
DOCTEST_CLANG_SUPPRESS_WARNING_POP