mirror of
https://github.com/nlohmann/json.git
synced 2025-07-25 13:41:56 +03:00
fixing the remaining of the pedantic gcc/clang target warnings
This commit is contained in:
@ -28,6 +28,7 @@ SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "doctest_compatibility.h"
|
||||
DOCTEST_GCC_SUPPRESS_WARNING("-Wfloat-equal")
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
using nlohmann::json;
|
||||
@ -269,9 +270,7 @@ TEST_CASE("README" * doctest::skip())
|
||||
int i = 42;
|
||||
json jn = i;
|
||||
double f = jn;
|
||||
DOCTEST_GCC_SUPPRESS_WARNING_WITH_PUSH("-Wfloat-equal")
|
||||
CHECK(f == 42);
|
||||
DOCTEST_GCC_SUPPRESS_WARNING_POP
|
||||
|
||||
// etc.
|
||||
|
||||
|
Reference in New Issue
Block a user