diff options
author | Benny Baumann <BenBE@geshi.org> | 2024-04-08 15:06:59 +0200 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2024-04-17 10:29:27 +0200 |
commit | 9cc1c5ea15cc7f7fa6ebcdee151df9da56e95009 (patch) | |
tree | 4e6ba26e4eafe24a16ec59cf03f7c7e41534ecab /FunctionBar.c | |
parent | 51ead9d8b68a7b65010da8c943f5e8264ded01b9 (diff) |
Reserve full function array to make the GCC14 static code analyzer happy
Only happens with LTO, -fanalyzer, and -fsanitize=address,leak
Diffstat (limited to 'FunctionBar.c')
-rw-r--r-- | FunctionBar.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |