summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2019-10-02 04:17:05 +0200
committerGuillem Jover <guillem@debian.org>2019-10-30 22:16:24 +0100
commit2be46e2ad4b07758336a84552bbeb6bf3583e812 (patch)
tree1c8887f8ebdb8eb853f0d94bf97daf772cc2453a
parentcdf22e3757608040460329b46db3fad73e159bcd (diff)
downloaddpkg-2be46e2ad4b07758336a84552bbeb6bf3583e812.tar.gz
test: Suppress new bogus cppcheck 1.89 false positives
Warned-by: cppcheck
-rw-r--r--debian/changelog1
-rw-r--r--t/cppcheck/cppcheck.supp13
2 files changed, 14 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index f068899fc..f5e406bef 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -72,6 +72,7 @@ dpkg (1.20.0) UNRELEASED; urgency=medium
- Clarify cppcheck va_list_usedBeforeStarted suppression.
- Skip build directories from codespell check.
- Update stopwords for codespell 1.16.0.
+ - Suppress new bogus cppcheck 1.89 false positives.
[ Updated man pages translations ]
* German (Helge Kreutzmann). Closes: #931135
diff --git a/t/cppcheck/cppcheck.supp b/t/cppcheck/cppcheck.supp
index d3030db34..8aa1de7ae 100644
--- a/t/cppcheck/cppcheck.supp
+++ b/t/cppcheck/cppcheck.supp
@@ -21,6 +21,12 @@ literalWithCharPtrCompare:lib/dpkg/t/t-test.c
// Ignore, the code is used only for its binary artifacts.
uninitMemberVar:*/Dpkg_Shlibs/patterns.cpp
+// BUG: False positive, the variable uses operator() which writes to it.
+constVariable:dselect/pkgsublist.cc:111
+
+// BUG: False positive.
+syntaxError:lib/dpkg/t/*.c
+
// BUG: False positive.
knownConditionTrueFalse:src/depcon.c:585
knownConditionTrueFalse:src/depcon.c:668
@@ -37,6 +43,13 @@ unusedStructMember:lib/dpkg/triglib.c:378
// BUG: False positive, does not understand must-allocate functions.
nullPointer:src/unpack.c:195
+// BUG: False positive, does not understand non-returning functions.
+nullPointer:utils/start-stop-daemon.c:756
+nullPointer:utils/start-stop-daemon.c:758
+
+// BUG: False positive, does not understand parser.
+nullPointerArithmeticRedundantCheck:lib/dpkg/pkg-format.c:82
+
// BUG: False positive, does not understand setjmp-style error handling.
redundantAssignment:lib/compat/selinux.c:73
redundantAssignment:lib/dpkg/t/t-ehandle.c:108