[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-devel] Compile error in 1.4.0
From: |
qxc |
Subject: |
Re: [lwip-devel] Compile error in 1.4.0 |
Date: |
Fri, 24 Feb 2012 16:13:36 +0100 |
Hi,
> Out of interest, which compiler are you using that produces this
> warning? I'd be interested in what makes the compiler warning go away,
> using if/else instead of ?:, or only using 2 loops?
This construct solved the compiling problem:
dhcp->msg_out->chaddr[i] = ((i < netif->hwaddr_len) &&
(i<NETIF_MAX_HWADDR_LEN)) ? netif->hwaddr[i] : 0/* pad byte*/;
In case the other define is used explicitly within the condition the compiler
becomes happy.
It happened with
arm-none-eabi-gcc (Sourcery G++ Lite 2010.09-51) 4.5.1
Oxy
--
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!
Jetzt informieren: http://www.gmx.net/de/go/freephone/