lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] LWIP : Get rid of warnings when LWIP_NOASSERT is on


From: adityapr
Subject: Re: [lwip-users] LWIP : Get rid of warnings when LWIP_NOASSERT is on
Date: Mon, 19 Dec 2016 01:00:15 -0700 (MST)

Hi Dirk,

Since we are already at this issue, there are a couple of warnings that I
would also like to report.
In tcp.h:
 - #define TCPH_HDRLEN_FLAGS_SET(phdr, len, flags)
(phdr)->_hdrlen_rsvd_flags = htons(((len) << 12) | (flags))
+ #define TCPH_HDRLEN_FLAGS_SET(phdr, len, flags) (phdr)->_hdrlen_rsvd_flags
= htons((((len) << 12) | (flags)))
and in tcp_out.c
- TCPH_FLAGS_SET(tcphdr, TCP_ACK | TCP_FIN);
+TCPH_FLAGS_SET(tcphdr, ((TCP_ACK) | (TCP_FIN)));

These lines give warning for parenthesis in arm-none-eabi-gcc compiler. It
would be nice if these warnings are fixed with those as well.

Regards 
Aditya



--
View this message in context: 
http://lwip.100.n7.nabble.com/LWIP-Get-rid-of-warnings-when-LWIP-NOASSERT-is-on-tp28201p28205.html
Sent from the lwip-users mailing list archive at Nabble.com.



reply via email to

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