From 66431a62d18ad8a478a4b365c3de100fa1a68492 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Thu, 21 Dec 2023 12:45:29 +0100 Subject: [PATCH] fix(freertos): warning fix for building with IDF_TARGET=linux on macOS --- components/freertos/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/freertos/CMakeLists.txt b/components/freertos/CMakeLists.txt index e565e01ffa..c9a4956b96 100644 --- a/components/freertos/CMakeLists.txt +++ b/components/freertos/CMakeLists.txt @@ -184,6 +184,14 @@ if(arch STREQUAL "linux") if(BYPASS_EINTR_ISSUE) target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--wrap=select") endif() + + # Disable strict prototype warnings in upstream code + # (struct event * event_create() is missing 'void') + set_source_files_properties( + "${kernel_impl}/portable/${arch}/utils/wait_for_event.c" + PROPERTIES COMPILE_OPTIONS + "-Wno-strict-prototypes" + ) else() idf_component_get_property(COMPONENT_DIR freertos COMPONENT_DIR)