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