V2: [PATCH]Warning while compiling newlib-nano for eabi

Message ID 000301d3a180$28606c50$792144f0$@jasoon.nl
State New
Headers show
Series
  • V2: [PATCH]Warning while compiling newlib-nano for eabi
Related show

Commit Message

Jaap de Wolff Feb. 9, 2018, 8:29 a.m.
Hi all,
Yesterday I did sent the old, wrong patch 
Now the right one:

Jaap de Wolff

Patch

===================PATCH===================
diff --git a/newlib/libc/sys/arm/aeabi_atexit.c b/newlib/libc/sys/arm/aeabi_atexit.c
index 4b600e250..a5626b732 100644
--- a/newlib/libc/sys/arm/aeabi_atexit.c
+++ b/newlib/libc/sys/arm/aeabi_atexit.c
@@ -1,5 +1,8 @@ 
 #include <stdlib.h>
 
+/* forward declaration */
+extern int __cxa_atexit (void (*) (void *), void *, void *);
+
 /* Register a function to be called by exit or when a shared library
    is unloaded.  This routine is like __cxa_atexit, but uses the
    calling sequence required by the ARM EABI.  */