summaryrefslogtreecommitdiffstats
path: root/t/cppcheck/cppcheck.supp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:35:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:35:28 +0000
commitea314d2f45c40a006c0104157013ab4b857f665f (patch)
tree3ef2971cb3675c318b8d9effd987854ad3f6d3e8 /t/cppcheck/cppcheck.supp
parentInitial commit. (diff)
downloaddpkg-ea314d2f45c40a006c0104157013ab4b857f665f.tar.xz
dpkg-ea314d2f45c40a006c0104157013ab4b857f665f.zip
Adding upstream version 1.22.4.upstream/1.22.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 't/cppcheck/cppcheck.supp')
-rw-r--r--t/cppcheck/cppcheck.supp29
1 files changed, 29 insertions, 0 deletions
diff --git a/t/cppcheck/cppcheck.supp b/t/cppcheck/cppcheck.supp
new file mode 100644
index 0000000..ed183fd
--- /dev/null
+++ b/t/cppcheck/cppcheck.supp
@@ -0,0 +1,29 @@
+//
+// Suppression file for cppcheck.
+///
+
+// We assume that the system has a sane NULL definition.
+varFuncNullUB
+
+// We do not always want to make variables pointers to const.
+constVariablePointer
+
+// TODO: While perhaps valid there are many to handle right away.
+constParameterCallback
+constParameterPointer
+
+// Ignore, this is an imported module.
+cstyleCast:lib/compat/gettext.h
+unusedStructMember:lib/compat/obstack.c
+nullPointerArithmetic:lib/compat/obstack.c
+
+// Ignore, the code is used only for its binary artifacts.
+uninitMemberVar:*/Dpkg_Shlibs/patterns.cpp
+unusedStructMember:*/Dpkg_Shlibs/patterns.cpp
+
+// Ignore, the code is testing whether the functions return.
+unreachableCode:lib/dpkg/t/t-ehandle.c
+
+// Ignore, the code is testing the macros.
+duplicateExpression:lib/dpkg/t/t-macros.c
+duplicateValueTernary:lib/dpkg/t/t-macros.c