Mercurial > hg > orthanc
changeset 6442:f0287aed9e5c
cppcheck: configurations
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Tue, 18 Nov 2025 17:43:49 +0100 |
| parents | 8b2ef7afec93 |
| children | f288ceb2a131 |
| files | OrthancServer/Resources/RunCppCheck-2.1.sh OrthancServer/Resources/RunCppCheck-2.17.0.sh OrthancServer/Resources/RunCppCheck-2.17.1.sh |
| diffstat | 3 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 \
--- 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/ \
--- 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 \
