diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9e1fe49e01..c5c361c6d8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -69,7 +69,7 @@ jobs: sudo apt-get -y install cppcheck sudo cpan Path::Class cppcheck --template=gcc --inline-suppr --std=c++17 --enable=style,unusedFunction -i externals \ - -DCPPCHECK --force --suppressions-list=cppcheck.supp \ + -i src/plugins/weatherdata/gfs/g2clib -DCPPCHECK --force --suppressions-list=cppcheck.supp \ --library=qt.cfg --library=posix.cfg . 2> >(tee error.log >&2) perl scripts/warnings.pl error.log diff --git a/cppcheck.supp b/cppcheck.supp index 605c0ea1e3..30a261dfca 100644 --- a/cppcheck.supp +++ b/cppcheck.supp @@ -18,13 +18,6 @@ useStlAlgorithm // Internal errors cppcheckError -// g2clib -variableScope:src/plugins/weatherdata/gfs/g2clib/*.c -knownConditionTrueFalse:src/plugins/weatherdata/gfs/g2clib/*.c -redundantAssignment:src/plugins/weatherdata/gfs/g2clib/*.c -unreadVariable:src/plugins/weatherdata/gfs/g2clib/*.c -invalidFunctionArg:src/plugins/weatherdata/gfs/g2clib/*.c - // Ignore unusedFunction as it has too many false positives (especially in tests) unusedFunction