From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Received: (qmail 552 invoked from network); 12 Jan 2003 12:37:52 -0000 Received: from unknown (HELO Cantor.suse.de) (213.95.15.193) by 209.249.29.67 with SMTP; 12 Jan 2003 12:37:52 -0000 Received: from Hermes.suse.de (Hermes.suse.de [213.95.15.136]) by Cantor.suse.de (Postfix) with ESMTP id C355114332 for ; Sun, 12 Jan 2003 13:37:40 +0100 (MET) Received: from aj by arthur.inka.de with local (Exim 3.34 #1) id 18XhK0-000473-00 for libc-hacker@sources.redhat.com; Sun, 12 Jan 2003 13:34:36 +0100 To: GNU libc hacker Subject: New warnings in malloc.c From: Andreas Jaeger Date: Mon, 13 Jan 2003 04:59:00 -0000 Message-ID: User-Agent: Gnus/5.090011 (Oort Gnus v0.11) XEmacs/21.4 (Artificial Intelligence, i386-suse-linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-01/txt/msg00098.txt.bz2 I now get: malloc.c:1472: warning: static declaration for `_int_malloc' follows non-static malloc.c:1473: warning: static declaration for `_int_free' follows non-static malloc.c:1474: warning: static declaration for `_int_realloc' follows non-static malloc.c:1475: warning: static declaration for `_int_memalign' follows non-static these come from changing malloc.c but not changing malloc.h. IMO they should be removed from malloc.h. Ok to apply the appended patch? Andreas 2003-01-12 Andreas Jaeger * malloc/malloc.h: Remove now static only functions. ============================================================ Index: malloc/malloc.h --- malloc/malloc.h 12 Mar 2002 21:58:54 -0000 1.22 +++ malloc/malloc.h 12 Jan 2003 12:32:23 -0000 @@ -229,13 +229,6 @@ struct malloc_state; typedef struct malloc_state *mstate; extern mstate _int_new_arena __MALLOC_P ((size_t __ini_size)); -extern __malloc_ptr_t _int_malloc __MALLOC_P ((mstate __m, size_t __size)); -extern void _int_free __MALLOC_P ((mstate __m, __malloc_ptr_t __ptr)); -extern __malloc_ptr_t _int_realloc __MALLOC_P ((mstate __m, - __malloc_ptr_t __ptr, - size_t __size)); -extern __malloc_ptr_t _int_memalign __MALLOC_P ((mstate __m, size_t __alignment, - size_t __size)); #ifdef __cplusplus }; /* end of extern "C" */ -- Andreas Jaeger SuSE Labs aj@suse.de private aj@arthur.inka.de http://www.suse.de/~aj