[PATCH]Warning while compiling newlib-nano for eabi

Corinna Vinschen vinschen@redhat.com
Thu Feb 8 15:34:00 GMT 2018


On Feb  8 10:41, Jaap de Wolff wrote:
> At this moment we get warnings while we compile nano for eabi.
> This patch will prevent this
> 
> Jaap de Wolff
> =======================PATCH=======================================
> diff --git a/newlib/libc/sys/arm/aeabi_atexit.c
> b/newlib/libc/sys/arm/aeabi_atexit.c
> index 4b600e250..9ecd19d05 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

/* */  rather than //, please, just as in the other patches.

> +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.  */

Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20180208/266f2b17/attachment.sig>


More information about the Newlib mailing list