🚨 fix warnings

This commit is contained in:
Niels Lohmann 2021-01-01 12:59:55 +01:00
parent 6085beec35
commit 6bfcea39d0
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
3 changed files with 0 additions and 18 deletions

View File

@ -31,12 +31,6 @@
#define JSON_HAS_CPP_14 #define JSON_HAS_CPP_14
#endif #endif
// disable float-equal warnings on GCC/clang
#if defined(__clang__) || defined(__GNUC__) || defined(__GNUG__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wfloat-equal"
#endif
// disable documentation warnings on clang // disable documentation warnings on clang
#if defined(__clang__) #if defined(__clang__)
#pragma GCC diagnostic push #pragma GCC diagnostic push

View File

@ -1,9 +1,6 @@
#pragma once #pragma once
// restore GCC/clang diagnostic settings // restore GCC/clang diagnostic settings
#if defined(__clang__) || defined(__GNUC__) || defined(__GNUG__)
#pragma GCC diagnostic pop
#endif
#if defined(__clang__) #if defined(__clang__)
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#endif #endif

View File

@ -2108,12 +2108,6 @@ JSON_HEDLEY_DIAGNOSTIC_POP
#define JSON_HAS_CPP_14 #define JSON_HAS_CPP_14
#endif #endif
// disable float-equal warnings on GCC/clang
#if defined(__clang__) || defined(__GNUC__) || defined(__GNUG__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wfloat-equal"
#endif
// disable documentation warnings on clang // disable documentation warnings on clang
#if defined(__clang__) #if defined(__clang__)
#pragma GCC diagnostic push #pragma GCC diagnostic push
@ -25427,9 +25421,6 @@ inline nlohmann::json::json_pointer operator "" _json_pointer(const char* s, std
// restore GCC/clang diagnostic settings // restore GCC/clang diagnostic settings
#if defined(__clang__) || defined(__GNUC__) || defined(__GNUG__)
#pragma GCC diagnostic pop
#endif
#if defined(__clang__) #if defined(__clang__)
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#endif #endif