New warnings in malloc.c
Andreas Jaeger
aj@suse.de
Mon Jan 13 04:59:00 GMT 2003
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
More information about the Libc-hacker
mailing list