diff --git a/components/lwip/CMakeLists.txt b/components/lwip/CMakeLists.txt index 81e8f1505..b2af69300 100644 --- a/components/lwip/CMakeLists.txt +++ b/components/lwip/CMakeLists.txt @@ -145,3 +145,11 @@ if(GCC_NOT_5_2_0) -Wno-implicit-fallthrough ) endif() + +# "comparison is always false due to limited range of data type" warning +# when setting CONFIG_LWIP_TCP_WND_DEFAULT to 65535 +set_source_files_properties( + lwip/src/core/tcp.c + PROPERTIES COMPILE_FLAGS + -Wno-type-limits +) diff --git a/components/lwip/component.mk b/components/lwip/component.mk index a92b88869..e34b4afc3 100644 --- a/components/lwip/component.mk +++ b/components/lwip/component.mk @@ -36,4 +36,6 @@ lwip/src/netif/ppp/ppp.o: CFLAGS += -Wno-uninitialized lwip/src/netif/ppp/pppos.o: CFLAGS += -Wno-implicit-fallthrough endif +lwip/src/core/tcp.o: CFLAGS += -Wno-type-limits + COMPONENT_ADD_LDFRAGMENTS += linker.lf