From ea314d2f45c40a006c0104157013ab4b857f665f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 20:35:28 +0200 Subject: Adding upstream version 1.22.4. Signed-off-by: Daniel Baumann --- t/cppcheck/cppcheck.supp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 t/cppcheck/cppcheck.supp (limited to 't/cppcheck') 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 -- cgit v1.2.3