Displaying 2 results from an estimated 2 matches for "safe_calloc_".
Did you mean:
safe_calloc
2007 Sep 11
2
include/share/alloc.h
...void *safe_malloc_(size_t size)
By making them static functions, it means that (in C at least, not sure
about C++) every object file gets a copy of these functions whether they
are used or not. It also results in a bunch of warning messages like:
../../include/share/alloc.h:51: warning: 'safe_calloc_' defined but not used
../../include/share/alloc.h:68: warning: 'safe_malloc_add_3op_' defined but not used
../../include/share/alloc.h:79: warning: 'safe_malloc_add_4op_' defined but not used
../../include/share/alloc.h:115: warning: 'safe_malloc_mul_3op_' de...
2007 Sep 11
0
include/share/alloc.h
...gt; By making them static functions, it means that (in C at least, not
> sure
> about C++) every object file gets a copy of these functions whether
> they
> are used or not. It also results in a bunch of warning messages like:
>
> ../../include/share/alloc.h:51: warning: 'safe_calloc_' defined
> but not used
> ../../include/share/alloc.h:68: warning: 'safe_malloc_add_3op_'
> defined but not used
> ../../include/share/alloc.h:79: warning: 'safe_malloc_add_4op_'
> defined but not used
> ../../include/share/alloc.h:115: warning: ...