Hello,
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?
Thanks,
Andy.
_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users