util/signal_test.cc: suppress intentional null pointer deref
Add comment to enabele cppcheck suppression of intentional null pointer deref via --inline-suppr option. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
parent
33580fa39a
commit
af8c2b2d97
@ -9,6 +9,7 @@
|
||||
namespace {
|
||||
void f0() {
|
||||
char *p = nullptr;
|
||||
// cppcheck-suppress nullPointer
|
||||
*p = 10; /* SIGSEGV here!! */
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user