lw-ip: silence a warning related to CONFIG_LWIP_TCP_WND_DEFAULT value

This commit is contained in:
Ivan Grokhotkov 2019-10-18 17:01:49 +02:00 committed by Angus Gratton
parent 21995978e1
commit bfbc10e2d8
2 changed files with 10 additions and 0 deletions

View file

@ -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
)

View file

@ -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