Skip to content

Commit

Permalink
zephyr: hello_world: Fix the main() return type warning
Browse files Browse the repository at this point in the history
Fixes the "return type of 'main' is not 'int'" warning.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
  • Loading branch information
butok authored and nordicjm committed Oct 8, 2024
1 parent 63fa7e4 commit a5e3d16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/zephyr/hello-world/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>

void main(void)
int main(void)
{
printk("Hello World from %s on %s!\n",
MCUBOOT_HELLO_WORLD_FROM, CONFIG_BOARD);
return 0;
}

0 comments on commit a5e3d16

Please sign in to comment.