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=73891ef26d6f5eff343d6859272865201fff8d36

commit 73891ef26d6f5eff343d6859272865201fff8d36
Author: Guillem Jover <[email protected]>
AuthorDate: Sun Nov 20 23:31:35 2022 +0100

    test: Make cppcheck unknownMacro suppression more specific
    
    Bind it to the actual files currently triggering this report.
---
 t/cppcheck/cppcheck.supp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/t/cppcheck/cppcheck.supp b/t/cppcheck/cppcheck.supp
index 221023c38..d57248793 100644
--- a/t/cppcheck/cppcheck.supp
+++ b/t/cppcheck/cppcheck.supp
@@ -27,7 +27,8 @@ literalWithCharPtrCompare:lib/dpkg/t/t-test.c
 uninitMemberVar:*/Dpkg_Shlibs/patterns.cpp
 
 // BUG: False positive, it gets triggered even with -Ilib.
-unknownMacro
+unknownMacro:lib/dpkg/string.h
+unknownMacro:utils/*.c
 
 // BUG: False positive, the function returns a pointer within a local.
 returnDanglingLifetime:lib/dpkg/pkg-hash.c

-- 
Dpkg.Org's dpkg

Reply via email to