From ac04aa3a63e0381a1ffafe1be33d5671ebd2cc1d Mon Sep 17 00:00:00 2001 From: Lars Toenning Date: Sun, 16 Apr 2023 16:50:43 +0200 Subject: [PATCH] [ci] Ignore g2clib with cppcheck --- .github/workflows/build.yml | 2 +- cppcheck.supp | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) 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