mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-17 17:10:03 +00:00
e4c01a064e
Include stdlib.h to fix below build warnings when MEM_LIBC_MALLOC is set: src/core/mem.c:119:3: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] void* ret = mem_clib_malloc(size + MEM_LIBC_STATSHELPER_SIZE); ^ src/core/mem.c:96:25: warning: incompatible implicit declaration of built-in function 'malloc' #define mem_clib_malloc malloc ^ src/core/mem.c:119:15: note: in expansion of macro 'mem_clib_malloc' void* ret = mem_clib_malloc(size + MEM_LIBC_STATSHELPER_SIZE); ^ src/core/mem.c: In function 'mem_free': src/core/mem.c:146:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] mem_clib_free(rmem); ^ src/core/mem.c:93:23: warning: incompatible implicit declaration of built-in function 'free' #define mem_clib_free free ^ src/core/mem.c:146:3: note: in expansion of macro 'mem_clib_free' mem_clib_free(rmem); ^ Signed-off-by: Axel Lin <axel.lin@ingics.com> |
||
---|---|---|
.. | ||
lwip | ||
netif | ||
posix |