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=999000645cb0135e7a586d3137bb3586c1f2acd1

commit 999000645cb0135e7a586d3137bb3586c1f2acd1
Author: Guillem Jover <[email protected]>
AuthorDate: Sun Jun 25 02:06:08 2023 +0200

    test: Define macros to help cppcheck analyze code
    
    These macros disable some functions which makes them return 0, and
    cppcheck complains that the involve redundant code. Simply define these
    macros so that the real implementation can be analyzed.
    
    Warned-by: cppcheck
---
 t/cppcheck.t | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/t/cppcheck.t b/t/cppcheck.t
index b02661e85..0756b2d0f 100644
--- a/t/cppcheck.t
+++ b/t/cppcheck.t
@@ -34,6 +34,8 @@ my @cppcheck_opts = (qw(
   --inline-suppr
   --std=c99 --std=c++03
   --suppressions-list=t/cppcheck/cppcheck.supp
+  -D_DIRENT_HAVE_D_TYPE=1
+  -DWITH_LIBSELINUX=1
 ), (
   '--enable=warning,performance,portability,style',
   '--template=\'{file}:{line}: {severity} ({id}): {message}\''

-- 
Dpkg.Org's dpkg

Reply via email to