From 9652aeacf59140d33a080f80b5e4306d7064953d Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Mon, 11 Dec 2023 15:58:01 +0100 Subject: [PATCH] regress: Tweak cppcheck-test --- regress/tests/cppcheck-test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regress/tests/cppcheck-test b/regress/tests/cppcheck-test index 58f6fbf28..b64d2f903 100755 --- a/regress/tests/cppcheck-test +++ b/regress/tests/cppcheck-test @@ -10,7 +10,7 @@ TARGET=$1 if [ "$TARGET" == ALL ]; then - cppcheck --quiet --enable=all --std=c++11 --force --suppress=unreadVariable --suppress=cstyleCast --language=c++ ../bacula/src + cppcheck --quiet --enable=all --std=c++11 --force --suppress=unreadVariable --suppress=cstyleCast --language=c++ --suppress=unusedFunction ../bacula/src exit $? fi @@ -19,6 +19,6 @@ if [ "$TARGET" != "" ]; then git diff-tree --no-commit-id --name-only -r ${TARGET}..HEAD > /tmp/file.list.$$ if grep -E c$ /tmp/file.list.$$ > /dev/null then - grep -E '[ch]$' /tmp/file.list.$$ | xargs cppcheck --quiet --enable=all --std=c++11 --force --suppress=unreadVariable --suppress=cstyleCast --language=c++ + grep -E '[ch]$' /tmp/file.list.$$ | xargs cppcheck --quiet --enable=all --std=c++11 --force --suppress=unreadVariable --suppress=unusedFunction --suppress=cstyleCast --language=c++ fi fi -- 2.47.3