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
@@ -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) {