This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

New warnings in malloc.c


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  <aj@suse.de>

	* 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]