fix(ci): suppress GNU static analyzer warnings

This commit is contained in:
Alexey Lapshin
2026-06-15 18:53:21 +07:00
parent 2d22f09e0f
commit 406bd2393e
15 changed files with 93 additions and 22 deletions
+8
View File
@@ -231,3 +231,11 @@ endif()
# Required in `adc_share_hw_ctrl.h`
idf_component_optional_requires(PUBLIC esp_hal_ana_conv)
if(CONFIG_COMPILER_STATIC_ANALYZER AND CONFIG_IDF_TOOLCHAIN_GCC)
set_source_files_properties(
sleep_retention.c
PROPERTIES COMPILE_FLAGS
-Wno-analyzer-null-dereference
)
endif()
@@ -489,9 +489,9 @@ static IRAM_ATTR void smp_core_do_retention(void)
}
// Wait another core start to do retention
ESP_COMPILER_DIAGNOSTIC_PUSH_IGNORE("-Wanalyzer-infinite-loop")
bool smp_skip_retention = false;
smp_retention_state_t another_core_state;
ESP_COMPILER_DIAGNOSTIC_PUSH_IGNORE("-Wanalyzer-infinite-loop")
while (1) {
another_core_state = atomic_load(&s_smp_retention_state[!core_id]);
if (another_core_state == SMP_SKIP_RETENTION) {
@@ -407,9 +407,9 @@ static SPM_IRAM_ATTR void smp_core_do_retention(void)
}
// Wait another core start to do retention
ESP_COMPILER_DIAGNOSTIC_PUSH_IGNORE("-Wanalyzer-infinite-loop")
bool smp_skip_retention = false;
smp_retention_state_t another_core_state;
ESP_COMPILER_DIAGNOSTIC_PUSH_IGNORE("-Wanalyzer-infinite-loop")
while (1) {
another_core_state = atomic_load(&s_smp_retention_state[!core_id]);
if (another_core_state == SMP_SKIP_RETENTION) {
@@ -430,9 +430,9 @@ static IRAM_ATTR void smp_core_do_retention(void)
}
// Wait another core start to do retention
ESP_COMPILER_DIAGNOSTIC_PUSH_IGNORE("-Wanalyzer-infinite-loop")
bool smp_skip_retention = false;
smp_retention_state_t another_core_state;
ESP_COMPILER_DIAGNOSTIC_PUSH_IGNORE("-Wanalyzer-infinite-loop")
while (1) {
another_core_state = atomic_load(&s_smp_retention_state[!core_id]);
if (another_core_state == SMP_SKIP_RETENTION) {