diff options
-rw-r--r-- | lib/cm3/vector.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cm3/vector.c b/lib/cm3/vector.c index 13d8f6ac..97217787 100644 --- a/lib/cm3/vector.c +++ b/lib/cm3/vector.c @@ -32,7 +32,7 @@ extern funcp_t __preinit_array_start, __preinit_array_end; extern funcp_t __init_array_start, __init_array_end; extern funcp_t __fini_array_start, __fini_array_end; -void main(void); +int main(void); void blocking_handler(void); void null_handler(void); @@ -90,7 +90,7 @@ void __attribute__ ((weak, naked)) reset_handler(void) } /* Call the application's entry point. */ - main(); + (void)main(); /* Destructors. */ for (fp = &__fini_array_start; fp < &__fini_array_end; fp++) { |