public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] add forward declaration to __cxa_atexit to aeabi_atexit, to prevent warnings
@ 2018-02-16 12:45 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2018-02-16 12:45 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=8329f4867b3f843318134f756c9c0fb27a5befd4

commit 8329f4867b3f843318134f756c9c0fb27a5befd4
Author: Jaap de Wolff <info@jasoon.nl>
Date:   Mon Feb 12 12:23:43 2018 +0100

    add forward declaration to __cxa_atexit to aeabi_atexit, to prevent warnings

Diff:
---
 newlib/libc/sys/arm/aeabi_atexit.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/newlib/libc/sys/arm/aeabi_atexit.c b/newlib/libc/sys/arm/aeabi_atexit.c
index 4b600e2..a5626b7 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.  */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-02-16 12:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-16 12:45 [newlib-cygwin] add forward declaration to __cxa_atexit to aeabi_atexit, to prevent warnings Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).