[Top][All Lists]

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

[lwip-users] Compile problems

From: Andy Pont
Subject: [lwip-users] Compile problems
Date: Sat, 3 Oct 2015 10:47:17 +0100


I am currently working on integrating lwIP into a project which is built
using gcc v5.1.0 for a 32bit x86 platform.  The project mandates the
following compile command line switches:

-funsafe-loop-optimizations -Wunsafe-loop-optimizations -Werror

When using those command line options the compilation of the latest top of
tree sources gives up with the following output from gcc:

net/lwIP/src/core/inet_chksum.c: In function 'lwip_standard_chksum':
net/lwIP/src/core/inet_chksum.c:153:9: error: assuming that the loop counter
does not overflow [-Werror=unsafe-loop-optimizations]
   while (len > 1) {
cc1: all warnings being treated as errors

Is there a simple an obvious change to the source code to fix this and make
the compiler happy?



reply via email to

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