diff options
| author | Maureen Helm <maureen.helm@analog.com> | 2023-08-30 16:41:08 -0500 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2024-10-02 07:49:53 +1000 |
| commit | a7ae3a385e0c394445d109bd967b0d90a4fe92e7 (patch) | |
| tree | 07854818aa6131ce634e23e76ca5595eeeacace3 | |
| parent | 90c5b04a97846cf63bfb15e48bc1d7cca6557a0c (diff) | |
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 <maureen.helm@analog.com>
| -rw-r--r-- | ports/zephyr/src/zephyr_start.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |
