software/bios: set attribute used on main to fix optimization in some configurations

This commit is contained in:
Ilia Sergachev 2022-01-23 11:04:22 +01:00
parent ef5f6398b2
commit 3f2a7b9bfd
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ static void boot_sequence(void)
printf("No boot medium found\n"); printf("No boot medium found\n");
} }
int main(int i, char **c) __attribute__((__used__)) int main(int i, char **c)
{ {
char buffer[CMD_LINE_BUFFER_SIZE]; char buffer[CMD_LINE_BUFFER_SIZE];
char *params[MAX_PARAM]; char *params[MAX_PARAM];