lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] unix port build warning


From: Axel Lin
Subject: [lwip-devel] unix port build warning
Date: Fri, 10 Mar 2017 13:49:14 +0800

Got below build warning in current git tree:

cc -g -Wall -DLWIP_DEBUG -pedantic -Werror -Wparentheses
-Wsequence-point -Wswitch-default -Wextra -Wundef -Wshadow
-Wpointer-arith -Wcast-qual -Wc++-compat -Wwrite-strings
-Wold-style-definition -Wcast-align -Wmissing-prototypes
-Wredundant-decls -Wnested-externs -Wno-address -Wunreachable-code
-Wuninitialized -Wlogical-op -I. -I../../..
-I../../../../lwip/src/include -I../../../ports/unix/port/include -c
../../../../lwip/src/api/sockets.c
In file included from ./lwipopts.h:35:0,
                 from ../../../../lwip/src/include/lwip/opt.h:51,
                 from ../../../../lwip/src/api/sockets.c:47:
../../../../lwip/src/api/sockets.c: In function ‘lwip_recvmsg’:
../../../../lwip/src/api/sockets.c:1106:31: error: format ‘%p’ expects
argument of type ‘void *’, but argument 3 has type ‘struct msghdr *’
[-Werror=format=]
   LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvmsg(%d, message=%p,
flags=0x%x)\n", s, message, flags));
                               ^
../../../../lwip/src/include/lwip/arch.h:79:42: note: in definition of
macro ‘LWIP_PLATFORM_DIAG’
 #define LWIP_PLATFORM_DIAG(x) do {printf x;} while(0)
                                          ^
../../../../lwip/src/api/sockets.c:1106:3: note: in expansion of macro
‘LWIP_DEBUGF’
   LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvmsg(%d, message=%p,
flags=0x%x)\n", s, message, flags));
   ^~~~~~~~~~~
cc1: all warnings being treated as errors
../Common.mk:93: recipe for target 'sockets.o' failed
make: *** [sockets.o] Error 1



reply via email to

[Prev in Thread] Current Thread [Next in Thread]