From af8c2b2d97d8473d97107bcf326a450e7700def6 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Mon, 29 Sep 2014 23:00:18 +0200 Subject: [PATCH] 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 --- util/signal_test.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/util/signal_test.cc b/util/signal_test.cc index f51fa548e..b23ad6a98 100644 --- a/util/signal_test.cc +++ b/util/signal_test.cc @@ -9,6 +9,7 @@ namespace { void f0() { char *p = nullptr; + // cppcheck-suppress nullPointer *p = 10; /* SIGSEGV here!! */ }