travis: use suppression list to suppress warnings.

This commit is contained in:
Matthias Krüger 2014-01-06 19:03:45 +01:00
parent 0cfd60aa34
commit 8ae3df3249
2 changed files with 5 additions and 1 deletions

View File

@ -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

4
.travis_suppressions Normal file
View File

@ -0,0 +1,4 @@
uselessAssignmentPtrArg:build/checkstl.cpp
assertWithSideEffect:build/checkuninitvar.cpp
duplicateBranch:build/checkunusedvar.cpp
duplicateBranch:lib/checkunusedvar.cpp