lwip-users
[Top][All Lists]
Advanced

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

Re: AW: AW: [lwip-users] ioctl() plus compiler warnings/errors


From: David Haas
Subject: Re: AW: AW: [lwip-users] ioctl() plus compiler warnings/errors
Date: Tue, 18 Feb 2003 09:25:32 -0500
User-agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.2b) Gecko/20021107

I think this problem is caused by the fact that the diab compiler promotes anything smaller than int to int when it evaluates any expression. I also have the Diab compiler and it is a problem for me (when I turn on the lint features of the compiler).

David.


Zschocke, Florian wrote:

address@hidden wrote on Dienstag, 18. Februar 2003 13:40:

But what if you define 'c' as being a 'unsigned char'? If you
are using it as a set of flags, this should really work.

Apparently not, since the tcp_pbc::flags is an u8_t. And that is where it
occurs.
tcp_out.c:377:     pcb->flags &= ~(TF_ACK_DELAY | TF_ACK_NOW);

results in:

"..\src\core\tcp_out.c", line 377: warning (dcc:1244): constant out of range
(&=)

But since that may only a problem for us I'm fine when you decide not to use
the patch. We still have the option to either keep our sources changed or
turn the compiler error into a warning and ignore it. But I would still
suggest to use unsigned long for the cmd parameter of the lwip_ioctl()
function.

Florian.


_______________________________________________
lwip-users mailing list
address@hidden
http://mail.nongnu.org/mailman/listinfo/lwip-users








reply via email to

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