Merge branch 'fix/coredump-gcc-analyzer-warnings' into 'master'
fix(system): fix GCC-14 analyzer warnings for coredump Closes GCC-14 See merge request espressif/esp-idf!34809
This commit is contained in:
@@ -301,7 +301,7 @@ void esp_panic_handler(panic_info_t *info)
|
||||
char *panic_reason_str = NULL;
|
||||
if (info->pseudo_excause) {
|
||||
panic_reason_str = (char *)info->reason;
|
||||
} else if (g_panic_abort && strlen(g_panic_abort_details)) {
|
||||
} else if (g_panic_abort) {
|
||||
panic_reason_str = g_panic_abort_details;
|
||||
}
|
||||
if (panic_reason_str) {
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "sdkconfig.h"
|
||||
#include "esp_system.h"
|
||||
#include "esp_private/system_internal.h"
|
||||
#include "esp_macros.h"
|
||||
#include "esp_attr.h"
|
||||
#include "esp_log.h"
|
||||
#include "esp_rom_sys.h"
|
||||
@@ -114,7 +115,5 @@ void IRAM_ATTR esp_restart_noos(void)
|
||||
|
||||
// Reset PRO CPU
|
||||
esp_rom_software_reset_cpu(0);
|
||||
while (true) {
|
||||
;
|
||||
}
|
||||
ESP_INFINITE_LOOP();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user