lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] 2.1.x bugfix branch updated


From: Simon Goldschmidt
Subject: Re: [lwip-devel] 2.1.x bugfix branch updated
Date: Wed, 27 Feb 2019 10:26:50 +0100

Jacob Kroon wrote:
> On Wed, Feb 27, 2019 at 1:45 AM Axel Lin <address@hidden> wrote:
> >
> > Simon Goldschmidt <address@hidden> 於 2019年2月26日 週二 下午11:48寫道:
> > >
> > > Axel Lin wrote:
> > > > Simon Goldschmidt <address@hidden> 於 2019年2月18日 週一 下午8:51寫道:
> > > > >
> > > > > Hi all,
> > > > >
> > > > > the 2.1.x branch [1] just got about 20 or so bugfix cherry-picks.
> > > > > This means I'd like to release 2.1.3 shortly. Please test :-)
> > > >
> > > > Hi Simon,
> > > > Is below commit also required for stable-2.1.x?
> > > > http://git.savannah.gnu.org/cgit/lwip.git/commit/?id=2ff0db9a9b047d1c94ddbeea010561d1b9032101
> > > > It was reported on
> > > > http://lists.nongnu.org/archive/html/lwip-devel/2018-11/msg00073.html
> > >
> > > Yes. I've cherry-picked that one also. Plus an updated fix for this.
> > Hi Simon,
> > Now I got below build issue in both master and stable-2.1.x branch:
> >
> > ../../../../src/core/udp.c: In function ‘udp_bind’:
> > ../../../../src/core/udp.c:999:42: error: suggest parentheses around
> > ‘&&’ within ‘||’ [-Werror=parentheses]
> >            if ((ipcb->local_port == port) &&
> >                ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
> >                ((IP_GET_TYPE(&ipcb->local_ip) == IP_GET_TYPE(ipaddr)) &&
> >                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >                /* IP address matches or any IP used? */
> >                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >                (ip_addr_cmp(&ipcb->local_ip, ipaddr) ||
> >                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >                ip_addr_isany(ipaddr) ||
> >                ~~~~~~~~~~~~~~~~~~~~~~~~
> >                ip_addr_isany(&ipcb->local_ip))) ||
> >                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > cc1: all warnings being treated as errors
> > /home/axel/git/lwip/lwip/contrib/ports/unix/../Common.allports.mk:91:
> > recipe for target 'udp.o' failed
> > make: *** [udp.o] Error 1
> >
> 
> I see the same build error using stable-2.1.x branch. I also get
> another build error:
> 
> api_lib.c:274:78: error: macro "LWIP_PLATFORM_DIAG" requires 2
> arguments, but only 1 given
> 
> Reverting commit 174cc87227dedf69f7d4aaf0fb6aad4c31408983 seems to
> make the problem go away, but it might be our macros that are bad.

Yes, it's your macro. LWIP_PLATFORM_DIAG takes 1 argument, not two.
Probably you haven't yet compiled code that uses this macro?

Regards,
Simon



reply via email to

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