Skip to content

Commit

Permalink
util/signal_test.cc: suppress intentional null pointer deref
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dalgaaf committed Sep 30, 2014
1 parent 33580fa commit af8c2b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions util/signal_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
namespace {
void f0() {
char *p = nullptr;
// cppcheck-suppress nullPointer
*p = 10; /* SIGSEGV here!! */
}

Expand Down

0 comments on commit af8c2b2

Please sign in to comment.