fix(freertos): warning fix for building with IDF_TARGET=linux on macOS

This commit is contained in:
Ivan Grokhotkov
2023-12-21 12:45:29 +01:00
parent cb21994358
commit 66431a62d1

View File

@@ -184,6 +184,14 @@ if(arch STREQUAL "linux")
if(BYPASS_EINTR_ISSUE) if(BYPASS_EINTR_ISSUE)
target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--wrap=select") target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--wrap=select")
endif() 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() else()
idf_component_get_property(COMPONENT_DIR freertos COMPONENT_DIR) idf_component_get_property(COMPONENT_DIR freertos COMPONENT_DIR)