This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH 3/5] add forward declaration to __cxa_atexit to aeabi_atexit, to prevent warnings
- From: Jaap de Wolff <info at jasoon dot nl>
- To: newlib at sourceware dot org
- Cc: Jaap de Wolff <info at jasoon dot nl>
- Date: Mon, 12 Feb 2018 12:23:43 +0100
- Subject: [PATCH 3/5] add forward declaration to __cxa_atexit to aeabi_atexit, to prevent warnings
- Authentication-results: sourceware.org; auth=none
- References: <20180212112345.17392-1-info@jasoon.nl>
---
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 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. */
--
2.11.0