From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31669 invoked by alias); 16 Feb 2018 12:45:56 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 31650 invoked by uid 9078); 16 Feb 2018 12:45:56 -0000 Date: Fri, 16 Feb 2018 12:45:00 -0000 Message-ID: <20180216124556.31648.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] add forward declaration to __cxa_atexit to aeabi_atexit, to prevent warnings X-Act-Checkin: newlib-cygwin X-Git-Author: Jaap de Wolff X-Git-Refname: refs/heads/master X-Git-Oldrev: 337cee51cac0d0fa0d68a437d5d182fc84de1241 X-Git-Newrev: 8329f4867b3f843318134f756c9c0fb27a5befd4 X-SW-Source: 2018-q1/txt/msg00036.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=8329f4867b3f843318134f756c9c0fb27a5befd4 commit 8329f4867b3f843318134f756c9c0fb27a5befd4 Author: Jaap de Wolff 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 +/* 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. */