diff --git a/components/esp_system/panic.c b/components/esp_system/panic.c index f673307dca..722975b7c7 100644 --- a/components/esp_system/panic.c +++ b/components/esp_system/panic.c @@ -399,7 +399,7 @@ void IRAM_ATTR __attribute__((noreturn, no_sanitize_undefined)) panic_abort(cons #endif #endif - *((int *) 0) = 0; // NOLINT(clang-analyzer-core.NullDereference) should be an invalid operation on targets + *((volatile int *) 0) = 0; // NOLINT(clang-analyzer-core.NullDereference) should be an invalid operation on targets while (1); }