mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-03 20:29:28 -05:00
See more details: http://errors.yoctoproject.org/Errors/Details/850313 ../git/compat/malloc.c:9:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 9 | void *malloc (); | ^~~~~~ ../git/compat/malloc.c:5:1: note: 'malloc' is declared in header '<stdlib.h>' 4 | #include "config.h" +++ |+#include <stdlib.h> 5 | #undef malloc ../git/compat/malloc.c: In function 'rpl_malloc_unbound': ../git/compat/malloc.c:23:10: error: too many arguments to function 'malloc'; expected 0, have 1 23 | return malloc (n); | ^~~~~~ ~ ../git/compat/malloc.c:9:7: note: declared here 9 | void *malloc (); | ^~~~~~ * Seeing that there is '#undef malloc', it appears they don't want to use the malloc from stdlib.h. Therefore, we need to correctly define the parameters for malloc. Signed-off-by: mark.yang <mark.yang@lge.com> |
||
|---|---|---|
| .. | ||
| arc4_lock.c | ||
| arc4random.c | ||
| arc4random_uniform.c | ||
| chacha_private.h | ||
| ctime_r.c | ||
| explicit_bzero.c | ||
| fake-rfc2553.c | ||
| fake-rfc2553.h | ||
| getentropy_freebsd.c | ||
| getentropy_linux.c | ||
| getentropy_osx.c | ||
| getentropy_solaris.c | ||
| getentropy_win.c | ||
| gmtime_r.c | ||
| inet_aton.c | ||
| inet_ntop.c | ||
| inet_pton.c | ||
| isblank.c | ||
| malloc.c | ||
| memcmp.c | ||
| memcmp.h | ||
| memmove.c | ||
| reallocarray.c | ||
| sha512.c | ||
| snprintf.c | ||
| strlcat.c | ||
| strlcpy.c | ||
| strptime.c | ||
| strsep.c | ||