From b65df4bebff34d4ed34a9088e963ce12bff728f2 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 11 Dec 2021 08:44:19 +1100 Subject: [PATCH] Fix spurious warning likely due to String::Data not being std compliant --- src/json.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/json.cc b/src/json.cc index e50d3e61..3661ac80 100644 --- a/src/json.cc +++ b/src/json.cc @@ -178,7 +178,7 @@ UnitTest test_json_parser{[]() } { - String big_nested_array{' ', CharCount{max_parsing_depth*2+2}}; + char big_nested_array[max_parsing_depth*2+2+1] = {}; for (size_t i = 0; i < max_parsing_depth+1; i++) { big_nested_array[i] = '[';