From 8ae3df3249351e32f51f81458f79ce9f72860287 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Mon, 6 Jan 2014 19:03:45 +0100 Subject: [PATCH] travis: use suppression list to suppress warnings. --- .travis.yml | 2 +- .travis_suppressions | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .travis_suppressions diff --git a/.travis.yml b/.travis.yml index 9c8bfcc38..06618fe11 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,7 +20,7 @@ script: # compile cppcheck, default build - make -j4 - make test -j4 - - ./cppcheck --error-exitcode=1 -Ilib --enable=style --suppress=duplicateBranch cli gui lib build -igui/test + - ./cppcheck --error-exitcode=1 -Ilib --enable=style --suppressions-list=.travis_suppressions cli gui lib build -igui/test # compile gui - cd gui - qmake diff --git a/.travis_suppressions b/.travis_suppressions new file mode 100644 index 000000000..3e314b88e --- /dev/null +++ b/.travis_suppressions @@ -0,0 +1,4 @@ +uselessAssignmentPtrArg:build/checkstl.cpp +assertWithSideEffect:build/checkuninitvar.cpp +duplicateBranch:build/checkunusedvar.cpp +duplicateBranch:lib/checkunusedvar.cpp