From d2ce9abb2a5eea98fabc6aa11545291b29cb1e3c Mon Sep 17 00:00:00 2001 From: Anton Maklakov Date: Mon, 13 Jun 2022 15:06:57 +0700 Subject: [PATCH] lwip: suppress some GCC 11 warnings Closes https://github.com/espressif/esp-idf/issues/9142 --- components/lwip/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/lwip/CMakeLists.txt b/components/lwip/CMakeLists.txt index 0f63bdee7f..c8e6958ff0 100644 --- a/components/lwip/CMakeLists.txt +++ b/components/lwip/CMakeLists.txt @@ -178,6 +178,13 @@ set_source_files_properties( -Wno-type-limits ) +# ignore some declaration mismatches +set_source_files_properties( + lwip/src/netif/ppp/chap_ms.c + PROPERTIES COMPILE_FLAGS + -Wno-array-parameter +) + if(CONFIG_OPENTHREAD_ENABLED) idf_component_optional_requires(PRIVATE openthread) endif()