diff --git a/s/cppcheck b/s/cppcheck index cbaf949c3..9c51309f8 100755 --- a/s/cppcheck +++ b/s/cppcheck @@ -1,5 +1,8 @@ #!/bin/sh -cppcheck --enable=all -U_MSC_VER -UCLEANUP_CODE -UTODO \ +IGNORE=$(find src -name "*.test.c" | awk '{ print "-i"$1 }') + +cppcheck $IGNORE \ + --quiet --enable=all -U_MSC_VER -UCLEANUP_CODE -UTODO \ -UERESSEA_BUILDNO -UERESSEA_VERSION \ -IcJSON -Isrc -Iclibs -Istorage src