Skip to content

Commit

Permalink
Reserve full function array to make the GCC14 static code analyzer happy
Browse files Browse the repository at this point in the history
Only happens with LTO, -fanalyzer, and -fsanitize=address,leak
  • Loading branch information
BenBE committed Apr 17, 2024
1 parent 51ead9d commit 9cc1c5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FunctionBar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 9cc1c5e

Please sign in to comment.