Mercurial > hg > orthanc
view OrthancServer/Resources/RunCppCheck.sh @ 4976:03632ed1eb67 more-tags
merged default -> more-tags
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 13 Apr 2022 14:58:58 +0200 |
parents | 8f1f76b73499 |
children | d0c34145320c |
line wrap: on
line source
#!/bin/bash set -ex CPPCHECK=cppcheck if [ $# -ge 1 ]; then CPPCHECK=$1 fi cat <<EOF > /tmp/cppcheck-suppressions.txt constParameter:../../OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp knownArgument:../../OrthancFramework/UnitTestsSources/ImageTests.cpp knownConditionTrueFalse:../../OrthancServer/Plugins/Engine/OrthancPlugins.cpp nullPointer:../../OrthancFramework/UnitTestsSources/RestApiTests.cpp:321 nullPointerRedundantCheck:../../OrthancFramework/UnitTestsSources/DicomMapTests.cpp stlFindInsert:../../OrthancFramework/Sources/DicomFormat/DicomMap.cpp:1195 stlFindInsert:../../OrthancFramework/Sources/RestApi/RestApiCallDocumentation.cpp:165 stlFindInsert:../../OrthancFramework/Sources/RestApi/RestApiCallDocumentation.cpp:73 stlFindInsert:../../OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp:373 stlFindInsert:../../OrthancServer/Sources/OrthancWebDav.cpp:375 stlFindInsert:../../OrthancServer/Sources/ServerJobs/MergeStudyJob.cpp:40 stlFindInsert:../../OrthancServer/Sources/ServerJobs/SplitStudyJob.cpp:190 syntaxError:../../OrthancFramework/Sources/SQLite/FunctionContext.h:52 syntaxError:../../OrthancFramework/UnitTestsSources/ZipTests.cpp:132 syntaxError:../../OrthancServer/UnitTestsSources/UnitTestsMain.cpp:310 uninitMemberVar:../../OrthancServer/Sources/ServerJobs/StorageCommitmentScpJob.cpp:416 unreadVariable:../../OrthancFramework/Sources/FileStorage/StorageAccessor.cpp unreadVariable:../../OrthancServer/Sources/OrthancRestApi/OrthancRestModalities.cpp:1115 unusedFunction useInitializationList:../../OrthancFramework/Sources/Images/PngReader.cpp:90 useInitializationList:../../OrthancFramework/Sources/Images/PngWriter.cpp:98 useInitializationList:../../OrthancServer/Sources/ServerJobs/DicomModalityStoreJob.cpp:274 EOF ${CPPCHECK} --enable=all --quiet --std=c++11 \ --suppressions-list=/tmp/cppcheck-suppressions.txt \ -DBOOST_HAS_DATE_TIME=1 \ -DBOOST_HAS_FILESYSTEM_V3=1 \ -DBOOST_HAS_REGEX=1 \ -DCIVETWEB_HAS_DISABLE_KEEP_ALIVE=1 \ -DCIVETWEB_HAS_WEBDAV_WRITING=1 \ -DDCMTK_VERSION_NUMBER=365 \ -DHAVE_MALLOPT=1 \ -DMONGOOSE_USE_CALLBACKS=1 \ -DJSONCPP_VERSION_MAJOR=1 \ -DJSONCPP_VERSION_MINOR=0 \ -DORTHANC_BUILDING_FRAMEWORK_LIBRARY=0 \ -DORTHANC_BUILDING_SERVER_LIBRARY=1 \ -DORTHANC_BUILD_UNIT_TESTS=1 \ -DORTHANC_ENABLE_BASE64=1 \ -DORTHANC_ENABLE_CIVETWEB=1 \ -DORTHANC_ENABLE_CURL=1 \ -DORTHANC_ENABLE_DCMTK=1 \ -DORTHANC_ENABLE_DCMTK_JPEG=1 \ -DORTHANC_ENABLE_DCMTK_JPEG_LOSSLESS=1 \ -DORTHANC_ENABLE_DCMTK_NETWORKING=1 \ -DORTHANC_ENABLE_DCMTK_TRANSCODING=1 \ -DORTHANC_ENABLE_JPEG=1 \ -DORTHANC_ENABLE_LOCALE=1 \ -DORTHANC_ENABLE_LOGGING=1 \ -DORTHANC_ENABLE_LOGGING_STDIO=1 \ -DORTHANC_ENABLE_LUA=1 \ -DORTHANC_ENABLE_MD5=1 \ -DORTHANC_ENABLE_MONGOOSE=0 \ -DORTHANC_ENABLE_PKCS11=1 \ -DORTHANC_ENABLE_PLUGINS=1 \ -DORTHANC_ENABLE_PNG=1 \ -DORTHANC_ENABLE_PUGIXML=1 \ -DORTHANC_ENABLE_SQLITE=1 \ -DORTHANC_ENABLE_SSL=1 \ -DORTHANC_ENABLE_ZLIB=1 \ -DORTHANC_SANDBOXED=0 \ -DORTHANC_SQLITE_VERSION=3027001 \ -DORTHANC_UNIT_TESTS_LINK_FRAMEWORK=1 \ -DPUGIXML_VERSION=150 \ -DUNIT_TESTS_WITH_HTTP_CONNEXIONS=1 \ -D__BYTE_ORDER=__LITTLE_ENDIAN \ -D__GNUC__ \ -D__cplusplus=201103 \ -D__linux__ \ -UNDEBUG \ \ ../../OrthancFramework/Sources \ ../../OrthancFramework/UnitTestsSources \ ../../OrthancServer/Plugins/Engine \ ../../OrthancServer/Plugins/Include \ ../../OrthancServer/Sources \ ../../OrthancServer/UnitTestsSources \ \ 2>&1