]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: Tweak cppcheck-test
authorEric Bollengier <eric@baculasystems.com>
Mon, 11 Dec 2023 14:58:01 +0000 (15:58 +0100)
committerEric Bollengier <eric@baculasystems.com>
Tue, 13 Feb 2024 09:36:02 +0000 (10:36 +0100)
regress/tests/cppcheck-test

index 58f6fbf28c222cf9d512c2fcd247192b2709ae58..b64d2f903e8491ce6cefb22556a8d812bee147aa 100755 (executable)
@@ -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