diff --git a/components/freertos/CMakeLists.txt b/components/freertos/CMakeLists.txt index d6f2d55a13..5776b7f378 100644 --- a/components/freertos/CMakeLists.txt +++ b/components/freertos/CMakeLists.txt @@ -249,7 +249,7 @@ else() idf_component_optional_requires(PRIVATE esp_pm) endif() - if(CONFIG_IDF_TARGET_ESP32P4 AND NOT CONFIG_FREERTOS_SMP AND + if(NOT CONFIG_FREERTOS_SMP AND CONFIG_COMPILER_STATIC_ANALYZER AND CMAKE_C_COMPILER_ID STREQUAL "GNU") # suppress false-positive warning set_source_files_properties( "${kernel_impl}/queue.c"