diff --git a/kernel/main_weak.c b/kernel/main_weak.c index 89a4ab09ff..0c25f764d3 100644 --- a/kernel/main_weak.c +++ b/kernel/main_weak.c @@ -21,16 +21,10 @@ #include -#ifdef CONFIG_CPP_MAIN int __weak main(void) -#else -void __weak main(void) -#endif { /* NOP default main() if the application does not provide one. */ arch_nop(); -#ifdef CONFIG_CPP_MAIN return 0; -#endif }