as far as I can tell
name your function "malloc"
and somehow don't worry about cross pollination between
program startup and the time your malloc() becomes visible

On Tue, 23 Apr 2013 23:44:17 +0200 Roland Mainz wrote:
> While trying to trace-down the issues with the ast-open build I
> noticed the following depreciation warnings in the build log:
> -- snip --
> /home/test001/work/ast_ksh_20130422/build_32bit_plain/src/lib/libast/vmalloc/malloc.c:
> In function 'vm_initialize_hook':
> /home/test001/work/ast_ksh_20130422/build_32bit_plain/src/lib/libast/vmalloc/malloc.c:820:2:
> warning: '__free_hook' is deprecated (declared at
> /usr/include/malloc.h:172) [-Wdeprecated-declarations]
> /home/test001/work/ast_ksh_20130422/build_32bit_plain/src/lib/libast/vmalloc/malloc.c:821:2:
> warning: '__malloc_hook' is deprecated (declared at
> /usr/include/malloc.h:175) [-Wdeprecated-declarations]
> /home/test001/work/ast_ksh_20130422/build_32bit_plain/src/lib/libast/vmalloc/malloc.c:822:2:
> warning: '__memalign_hook' is deprecated (declared at
> /usr/include/malloc.h:182) [-Wdeprecated-declarations]
> /home/test001/work/ast_ksh_20130422/build_32bit_plain/src/lib/libast/vmalloc/malloc.c:823:2:
> warning: '__realloc_hook' is deprecated (declared at
> /usr/include/malloc.h:178) [-Wdeprecated-declarations]
> /home/test001/work/ast_ksh_20130422/build_32bit_plain/src/lib/libast/vmalloc/malloc.c:
> At top level:
> /home/test001/work/ast_ksh_20130422/build_32bit_plain/src/lib/libast/vmalloc/malloc.c:826:1:
> warning: '__malloc_initialize_hook' is deprecated (declared at
> /usr/include/malloc.h:169) [-Wdeprecated-declarations]
> -- snip --

> Erm... does anyone know which glibc facility replaced these calls ?

> ----

> Bye,
> Roland

> -- 
>   __ .  . __
>  (o.\ \/ /.o) [email protected]
>   \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
>   /O /==\ O\  TEL +49 641 3992797
>  (;O/ \/ \O;)

_______________________________________________
ast-developers mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-developers

Reply via email to