From: Eric Bollengier Date: Mon, 11 Dec 2023 14:58:01 +0000 (+0100) Subject: regress: Tweak cppcheck-test X-Git-Tag: Beta-15.0.1~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9652aeacf59140d33a080f80b5e4306d7064953d;p=thirdparty%2Fbacula.git regress: Tweak cppcheck-test --- 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