panic: ignore deliberate null dereference to pass static analysis

This commit is contained in:
David Cermak 2020-03-27 19:18:40 +01:00
parent 62f9f42b54
commit 06c46837ce

View File

@ -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);
}