From 9cc1c5ea15cc7f7fa6ebcdee151df9da56e95009 Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Mon, 8 Apr 2024 15:06:59 +0200 Subject: Reserve full function array to make the GCC14 static code analyzer happy Only happens with LTO, -fanalyzer, and -fsanitize=address,leak --- FunctionBar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FunctionBar.c b/FunctionBar.c index 08500373..0e4fe761 100644 --- a/FunctionBar.c +++ b/FunctionBar.c @@ -30,7 +30,7 @@ static const int FunctionBar_EnterEscEvents[] = {13, 27}; static int currentLen = 0; FunctionBar* FunctionBar_newEnterEsc(const char* enter, const char* esc) { - const char* functions[] = {enter, esc, NULL}; + const char* functions[16] = {enter, esc, NULL}; return FunctionBar_new(functions, FunctionBar_EnterEscKeys, FunctionBar_EnterEscEvents); } -- cgit v1.2.3