mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
fix(ci): suppress GNU static analyzer warnings
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user