# HG changeset patch # User Sebastien Jodogne # Date 1763484229 -3600 # Node ID f0287aed9e5c31134592c95e4272b3af9daf5489 # Parent 8b2ef7afec935ad5a6f833da7c11ce3e4523b717 cppcheck: configurations diff -r 8b2ef7afec93 -r f0287aed9e5c OrthancServer/Resources/RunCppCheck-2.1.sh --- a/OrthancServer/Resources/RunCppCheck-2.1.sh Tue Nov 18 17:21:29 2025 +0100 +++ b/OrthancServer/Resources/RunCppCheck-2.1.sh Tue Nov 18 17:43:49 2025 +0100 @@ -28,7 +28,6 @@ syntaxError:../../OrthancServer/UnitTestsSources/UnitTestsMain.cpp:325 unreadVariable:../../OrthancFramework/Sources/FileStorage/StorageAccessor.cpp unreadVariable:../../OrthancServer/Sources/OrthancRestApi/OrthancRestModalities.cpp:1173 -unusedFunction useInitializationList:../../OrthancFramework/Sources/Images/PngReader.cpp:91 useInitializationList:../../OrthancFramework/Sources/Images/PngWriter.cpp:99 useInitializationList:../../OrthancServer/Sources/ServerJobs/DicomModalityStoreJob.cpp:275 @@ -41,8 +40,13 @@ assertWithSideEffect:../../OrthancFramework/Sources/DicomNetworking/Internals/CommandDispatcher.cpp:454 EOF +CPPCHECK_BUILD_DIR=/tmp/cppcheck-build-dir-2.1/ +mkdir -p ${CPPCHECK_BUILD_DIR} + ${CPPCHECK} -j8 --enable=all --quiet --std=c++11 \ + --cppcheck-build-dir=${CPPCHECK_BUILD_DIR} \ --suppressions-list=/tmp/cppcheck-suppressions.txt \ + --suppress=unusedFunction \ -DBOOST_HAS_DATE_TIME=1 \ -DBOOST_HAS_FILESYSTEM_V3=1 \ -DBOOST_HAS_REGEX=1 \ diff -r 8b2ef7afec93 -r f0287aed9e5c OrthancServer/Resources/RunCppCheck-2.17.0.sh --- a/OrthancServer/Resources/RunCppCheck-2.17.0.sh Tue Nov 18 17:21:29 2025 +0100 +++ b/OrthancServer/Resources/RunCppCheck-2.17.0.sh Tue Nov 18 17:43:49 2025 +0100 @@ -37,7 +37,11 @@ assertWithSideEffect:../../OrthancFramework/Sources/DicomNetworking/Internals/CommandDispatcher.cpp:454 EOF +CPPCHECK_BUILD_DIR=/tmp/cppcheck-build-dir-2.7.0/ +mkdir -p ${CPPCHECK_BUILD_DIR} + ${CPPCHECK} -j8 --enable=all --std=gnu++11 --library=boost \ + --cppcheck-build-dir=${CPPCHECK_BUILD_DIR} \ --suppressions-list=/tmp/cppcheck-suppressions.txt \ -I/usr/include/ \ -I/usr/include/jsoncpp/ \ diff -r 8b2ef7afec93 -r f0287aed9e5c OrthancServer/Resources/RunCppCheck-2.17.1.sh --- a/OrthancServer/Resources/RunCppCheck-2.17.1.sh Tue Nov 18 17:21:29 2025 +0100 +++ b/OrthancServer/Resources/RunCppCheck-2.17.1.sh Tue Nov 18 17:43:49 2025 +0100 @@ -53,7 +53,7 @@ variableScope:../../OrthancServer/Sources/ServerJobs/OrthancPeerStoreJob.cpp:94 EOF -CPPCHECK_BUILD_DIR=/tmp/cppcheck-build-dir/ +CPPCHECK_BUILD_DIR=/tmp/cppcheck-build-dir-2.7.1/ mkdir -p ${CPPCHECK_BUILD_DIR} ${CPPCHECK} -j8 --enable=all --quiet --std=c++11 \