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=6a762c1cd8e74060129e30a864b3c935b6f902da

commit 6a762c1cd8e74060129e30a864b3c935b6f902da
Author: Guillem Jover <[email protected]>
AuthorDate: Sun Jan 18 05:38:42 2026 +0100

    test: Undefine _LIBC for cppcheck
    
    We are not building a libc, so we should not be letting cppcheck try
    these code paths, which then trigger on missing macros such as
    SHLIB_COMPAT().
    
    Warned-by: cppcheck
---
 t/cppcheck.t | 1 +
 1 file changed, 1 insertion(+)

diff --git a/t/cppcheck.t b/t/cppcheck.t
index f32e9b7f2..876ca97fb 100644
--- a/t/cppcheck.t
+++ b/t/cppcheck.t
@@ -41,6 +41,7 @@ my @cppcheck_opts = (qw(
 ),
     "-I$builddir",
 qw(
+    -U_LIBC
     -D__GNUC__=12
     -D__GNUC_MINOR__=0
     -D_DIRENT_HAVE_D_TYPE=1

-- 
Dpkg.Org's dpkg

Reply via email to