This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch master in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=2be46e2ad4b07758336a84552bbeb6bf3583e812 commit 2be46e2ad4b07758336a84552bbeb6bf3583e812 Author: Guillem Jover <[email protected]> AuthorDate: Wed Oct 2 04:17:05 2019 +0200 test: Suppress new bogus cppcheck 1.89 false positives Warned-by: cppcheck --- debian/changelog | 1 + t/cppcheck/cppcheck.supp | 13 +++++++++++++ 2 files changed, 14 insertions(+) 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 -- Dpkg.Org's dpkg

