From 4e9e5b265979e42ad412136a99f3250cc1376d28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Tue, 10 May 2016 15:37:32 +0200 Subject: [PATCH] Suppress missing system headers and reduce allowed errors to zero --- CI/ci-cppcheck.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CI/ci-cppcheck.sh b/CI/ci-cppcheck.sh index 284072c1..12248108 100755 --- a/CI/ci-cppcheck.sh +++ b/CI/ci-cppcheck.sh @@ -18,7 +18,7 @@ echo -e "${NC}" echo "Please Wait ..." # Run cppcheck and output into file -cppcheck --enable=all . -I src -i Doc/ --force --suppress=unusedFunction --quiet vi src/OpenMesh/Tools/Utils/Timer.hh -Umin -Umax -UBMPOSTFIX -DOPENMESHDLLEXPORT="" &> cppcheck.log +cppcheck --enable=all . -I src -i Doc/ --force --suppress=unusedFunction --suppress=missingIncludeSystem --quiet vi src/OpenMesh/Tools/Utils/Timer.hh -Umin -Umax -UBMPOSTFIX -DOPENMESHDLLEXPORT="" &> cppcheck.log echo -e "${OUTPUT}" echo "==============================================================================" @@ -38,7 +38,7 @@ echo "CPPCHECK Summary" echo "==============================================================================" echo -e "${NC}" -if [ $COUNT -gt 1 ]; then +if [ $COUNT -gt 0 ]; then echo -e ${WARNING} echo "Total CPPCHECK error Count is $COUNT, which is too High! CPPCHECK Run failed"; echo -e "${NC}" -- GitLab