summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2021-12-11 08:44:19 +1100
committerMaxime Coste <mawww@kakoune.org>2021-12-11 08:44:19 +1100
commitb65df4bebff34d4ed34a9088e963ce12bff728f2 (patch)
treefcecc41e2706adbd8101dae6e32b665e4989c619 /src
parent658b6b0f1aad8dc85c2a49bb50d50e71d0174f1e (diff)
Fix spurious warning likely due to String::Data not being std compliant
Diffstat (limited to 'src')
-rw-r--r--src/json.cc2
1 files changed, 1 insertions, 1 deletions
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] = '[';