comparison OrthancServer/Resources/RunCppCheck.sh @ 4203:4d42408da117

improving const-correctness in ParsedDicomFile
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 17 Sep 2020 15:01:31 +0200
parents fbc49a65340a
children 318c16cfccab
comparison
equal deleted inserted replaced
4202:2007ab69ac16 4203:4d42408da117
6 6
7 if [ $# -ge 1 ]; then 7 if [ $# -ge 1 ]; then
8 CPPCHECK=$1 8 CPPCHECK=$1
9 fi 9 fi
10 10
11 cat <<EOF > /tmp/cppcheck-suppressions.txt
12 constParameter:../../OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp
13 nullPointerRedundantCheck:../../OrthancFramework/UnitTestsSources/DicomMapTests.cpp
14 stlFindInsert:../../OrthancFramework/Sources/DicomFormat/DicomMap.cpp
15 unreadVariable:../../OrthancFramework/Sources/FileStorage/StorageAccessor.cpp
16 useInitializationList:../../OrthancFramework/Sources/Images/PngReader.cpp
17 syntaxError:../../OrthancFramework/Sources/SQLite/FunctionContext.h
18 EOF
19
11 ${CPPCHECK} --enable=all --quiet --std=c++11 \ 20 ${CPPCHECK} --enable=all --quiet --std=c++11 \
21 --suppressions-list=/tmp/cppcheck-suppressions.txt \
12 -DBOOST_HAS_DATE_TIME=1 \ 22 -DBOOST_HAS_DATE_TIME=1 \
13 -DBOOST_HAS_FILESYSTEM_V3=1 \ 23 -DBOOST_HAS_FILESYSTEM_V3=1 \
14 -DBOOST_HAS_REGEX=1 \ 24 -DBOOST_HAS_REGEX=1 \
15 -DCIVETWEB_HAS_DISABLE_KEEP_ALIVE=1 \ 25 -DCIVETWEB_HAS_DISABLE_KEEP_ALIVE=1 \
16 -DDCMTK_VERSION_NUMBER=365 \ 26 -DDCMTK_VERSION_NUMBER=365 \