From a7ae3a385e0c394445d109bd967b0d90a4fe92e7 Mon Sep 17 00:00:00 2001 From: Maureen Helm Date: Wed, 30 Aug 2023 16:41:08 -0500 Subject: [PATCH] zephyr: Change main function to return an int. Zephyr v3.4.0 changed the declaration of the main function to return an int to allow building Zephyr without the -ffreestanding compiler flag. Signed-off-by: Maureen Helm --- ports/zephyr/src/zephyr_start.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ports/zephyr/src/zephyr_start.c b/ports/zephyr/src/zephyr_start.c index e15f874b1..c37af8e5b 100644 --- a/ports/zephyr/src/zephyr_start.c +++ b/ports/zephyr/src/zephyr_start.c @@ -29,11 +29,13 @@ int real_main(void); int mp_console_init(void); -void main(void) { +int main(void) { #ifdef CONFIG_CONSOLE_SUBSYS mp_console_init(); #else zephyr_getchar_init(); #endif real_main(); + + return 0; }