Index: scripts/jenkins/cppcheck-suppress.txt =================================================================== diff -u --- scripts/jenkins/cppcheck-suppress.txt (revision 0) +++ scripts/jenkins/cppcheck-suppress.txt (revision 37ebe302c211f40776026a04f9bd80acbf63c31a) @@ -0,0 +1,14 @@ +// externals +*:ext\* + +// generated files +*:src\chext\chext.h + +// disable c-style casts warnings +cstyleCast +// unusedFunction gives too many false positives +unusedFunction +// informs about some unused suppressions +unmatchedSuppression +// informs about missing include files +missingInclude \ No newline at end of file Index: scripts/jenkins/run-cppcheck.bat =================================================================== diff -u -r03117b5cbbcd28dfd24f4059c235703e9fdb8383 -r37ebe302c211f40776026a04f9bd80acbf63c31a --- scripts/jenkins/run-cppcheck.bat (.../run-cppcheck.bat) (revision 03117b5cbbcd28dfd24f4059c235703e9fdb8383) +++ scripts/jenkins/run-cppcheck.bat (.../run-cppcheck.bat) (revision 37ebe302c211f40776026a04f9bd80acbf63c31a) @@ -3,6 +3,6 @@ SET PATH=C:\Program Files\Cppcheck;%PATH% -mkdir "%WORKSPACE%\CPPCheck" +mkdir "CPPCheck" -cppcheck --enable=warning,style,performance,portability,information --suppress=cstyleCast --suppress=unusedPrivateFunction --inline-suppr --library=microsoft_sal.cfg --library=windows.cfg --std=c++11 --xml-version=2 --xml --platform=win32W --force src 2>"%WORKSPACE%\CPPCheck\cppcheck.xml" +cppcheck --enable=warning,style,performance,portability,information --suppressions-list=scripts\jenkins\cppcheck-suppress.txt --inline-suppr --library=microsoft_sal.cfg --library=windows.cfg --std=c++11 --xml-version=2 --xml --platform=win32W -i ext -i tests --project=ch.vc140.sln 2>"CPPCheck\cppcheck.xml"