From 06c46837ce18ddf97881523415118697b3f1abcf Mon Sep 17 00:00:00 2001 From: David Cermak Date: Fri, 27 Mar 2020 19:18:40 +0100 Subject: [PATCH] panic: ignore deliberate null dereference to pass static analysis --- components/esp_system/panic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_system/panic.c b/components/esp_system/panic.c index 628a153892..631a656495 100644 --- a/components/esp_system/panic.c +++ b/components/esp_system/panic.c @@ -338,6 +338,6 @@ void __attribute__((noreturn)) panic_abort(const char *details) #endif #endif - *((int *) 0) = 0; // should be an invalid operation on targets + *((int *) 0) = 0; // NOLINT(clang-analyzer-core.NullDereference) should be an invalid operation on targets while(1); } \ No newline at end of file