]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use util/suppressions.txt for Cppcheck suppressions list
authorOndřej Surý <ondrej@sury.org>
Thu, 3 Oct 2019 12:02:08 +0000 (14:02 +0200)
committerOndřej Surý <ondrej@sury.org>
Thu, 3 Oct 2019 12:02:08 +0000 (14:02 +0200)
.gitlab-ci.yml
util/suppressions.txt [new file with mode: 0644]

index 30f124361290e7afe94b0aed8827537bfef58a72..c4659978a994a1d46ae540c089f41dd96a072fb3 100644 (file)
@@ -228,7 +228,9 @@ stages:
            -j ${TEST_PARALLEL_JOBS:-1} \
            --xml \
            --output-file=cppcheck.results \
-           --inline-suppr
+           --relative-paths="$CI_PROJECT_DIR" \
+           --inline-suppr \
+           --suppressions-list=util/suppressions.txt
 
 .cppcheck_report: &cppcheck_report_html |
   cppcheck-htmlreport --title="BIND 9 ($CI_COMMIT_SHORT_SHA) Cppcheck Report" \
diff --git a/util/suppressions.txt b/util/suppressions.txt
new file mode 100644 (file)
index 0000000..cc0aa26
--- /dev/null
@@ -0,0 +1,5 @@
+unmatchedSuppression:*
+preprocessorErrorDirective:*
+invalidPrintfArgType_uint:bin/dig/dig.c
+invalidPrintfArgType_sint:lib/isc/buffer.c
+invalidPrintfArgType_uint:lib/isc/tests/crc64_test.c