Skip to content

Commit a5e3d16

Browse files
butoknordicjm
authored andcommitted
zephyr: hello_world: Fix the main() return type warning
Fixes the "return type of 'main' is not 'int'" warning. Signed-off-by: Andrej Butok <[email protected]>
1 parent 63fa7e4 commit a5e3d16

File tree

1 file changed

+2
-1
lines changed
  • samples/zephyr/hello-world/src

1 file changed

+2
-1
lines changed

samples/zephyr/hello-world/src/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
#include <zephyr/kernel.h>
88
#include <zephyr/sys/printk.h>
99

10-
void main(void)
10+
int main(void)
1111
{
1212
printk("Hello World from %s on %s!\n",
1313
MCUBOOT_HELLO_WORLD_FROM, CONFIG_BOARD);
14+
return 0;
1415
}

0 commit comments

Comments
 (0)