From d1e64391870fc76dd4304bc1f94024fde97cf86f Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Wed, 7 Oct 2026 22:56:50 +0200 Subject: [PATCH] Use the file-scope float_json alias in the #3989 test The local alias that the out-of-range test declared shadows the identical file-scope one, which GCC's -Wshadow=global turns into an error. Signed-off-by: Niels Lohmann --- tests/src/unit-regression2.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/src/unit-regression2.cpp b/tests/src/unit-regression2.cpp index ad898c2fd..3ee9995e0 100644 --- a/tests/src/unit-regression2.cpp +++ b/tests/src/unit-regression2.cpp @@ -1490,7 +1490,6 @@ TEST_CASE("regression test - #3989 SAX parse_error() returning true") SECTION("binary formats repair numbers that are out of range") { // CBOR: a double too large for a float number_float_t - using float_json = nlohmann::basic_json; float_json cbor; BasicRecoveringParser sax(cbor); const std::vector cbor_input = {0x82, 0xFB, 0x7E, 0x37, 0xE4, 0x3C, 0x88, 0x00, 0x75, 0x9C, 0x01}; // [1e300, 1]