Skip to content

Commit

Permalink
Indicate noreturn for main
Browse files Browse the repository at this point in the history
The main function will never return, because
`vTaskStartScheduler` never returns.
  • Loading branch information
Sven Hädrich committed Sep 15, 2024
1 parent ece77d0 commit 244adfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ __attribute__((noreturn)) static void main_task(__attribute__((unused)) void* du
}
}

int main(void)
__attribute__((noreturn)) int main(void)
{
board_init();
dali_101_init();
Expand Down

0 comments on commit 244adfe

Please sign in to comment.