lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] Noise from sockets.c


From: Kieran Mansley
Subject: Re: [lwip-devel] Noise from sockets.c
Date: Mon, 08 Aug 2011 09:42:46 +0100

On Sun, 2011-08-07 at 02:03 +0200, Gisle Vanem wrote:
> A lot of noise coming from my MingW-gcc 4.5.0 when compiling sockets.c:
> 
> sockets.c: In function 'lwip_accept':
> sockets.c:462:5: warning: format '%u' expects type 'unsigned int', but 
> argument 2 has type
> 'long unsigned int'

That is an odd error, because the value being printed is being
explicitly cast to the right type.  E.g. ip4_addr1_16(ipaddr) is defined
as ((u16_t)ip4_addr1(ipaddr)).  What is your definition of U16_F?  Your
port of lwIP should make sure that the definition of U16_F matches the
type width on your platform for u16_t.

Kieran






reply via email to

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