lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] unix port build warning


From: Simon Goldschmidt
Subject: Re: [lwip-devel] unix port build warning
Date: Fri, 10 Mar 2017 07:56:36 +0100

Should be fixed, thanks for the reminder.
 
Simon
 
 
Gesendet: Freitag, 10. März 2017 um 06:49 Uhr
Von: "Axel Lin" <address@hidden>
An: lwip-devel <address@hidden>
Betreff: [lwip-devel] unix port build warning
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

_______________________________________________
lwip-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-devel

reply via email to

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