This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=2e0ca957cf84f209191badd36bc7fe09ccee58c8

commit 2e0ca957cf84f209191badd36bc7fe09ccee58c8
Author: Guillem Jover <guil...@debian.org>
AuthorDate: Tue Oct 17 09:41:28 2023 +0200

    test: Update cppcheck suppressions for 2.12.0
    
    Warned-by: cppcheck
---
 t/cppcheck/cppcheck.supp | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/t/cppcheck/cppcheck.supp b/t/cppcheck/cppcheck.supp
index beacaff48..a07d3554c 100644
--- a/t/cppcheck/cppcheck.supp
+++ b/t/cppcheck/cppcheck.supp
@@ -18,6 +18,13 @@ nullPointerArithmetic:lib/compat/obstack.c
 uninitMemberVar:*/Dpkg_Shlibs/patterns.cpp
 unusedStructMember:*/Dpkg_Shlibs/patterns.cpp
 
+// Ignore, the code is testing the macros.
+knownConditionTrueFalse:lib/dpkg/t/t-macros.c
+
+// BUG: False positive, the condition always ends up being false.
+knownConditionTrueFalse:lib/dpkg/pkg-hash.c
+knownPointerToBool:lib/dpkg/pkg-hash.c
+
 // BUG: False positive.
 unusedStructMember:lib/dpkg/compress.c
 
@@ -28,6 +35,10 @@ unknownMacro:utils/*.c
 // BUG: False positive.
 syntaxError:lib/dpkg/t/*.c
 
+// BUG: False positive.
+AssignmentIntegerToAddress:dselect/pkgdepcon.cc
+AssignmentIntegerToAddress:dselect/pkgsublist.cc
+
 // BUG: False positive, does not understand non-returning functors.
 nullPointerArithmeticRedundantCheck:lib/dpkg/db-fsys-files.c
 nullPointerArithmeticRedundantCheck:lib/dpkg/db-fsys-override.c

-- 
Dpkg.Org's dpkg

Reply via email to