From 8709c42cf105576cf3ec5876f1fe23e16b74591b Mon Sep 17 00:00:00 2001 From: Jim Huang Date: Mon, 22 Feb 2021 16:35:53 +0800 Subject: [PATCH] Suppress cppcheck warnings --- scripts/pre-commit.hook | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pre-commit.hook b/scripts/pre-commit.hook index 15c3933ed..4b2ba1d56 100755 --- a/scripts/pre-commit.hook +++ b/scripts/pre-commit.hook @@ -1,6 +1,6 @@ #!/usr/bin/env bash -CPPCHECK_suppresses="--inline-suppr harness.c --suppress=unmatchedSuppression:harness.c --suppress=missingIncludeSystem --suppress=unusedFunction:linenoise.c --suppress=variableScope:linenoise.c" +CPPCHECK_suppresses="--inline-suppr harness.c --suppress=unmatchedSuppression:harness.c --suppress=missingIncludeSystem --suppress=unusedFunction:linenoise.c --suppress=variableScope:linenoise.c --suppress=nullPointerRedundantCheck:report.c" CPPCHECK_OPTS="-I. --enable=all --error-exitcode=1 --force $CPPCHECK_suppresses ." RETURN=0