diff 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
line wrap: on
line diff
--- a/OrthancServer/Resources/RunCppCheck.sh	Thu Sep 17 08:35:11 2020 +0200
+++ b/OrthancServer/Resources/RunCppCheck.sh	Thu Sep 17 15:01:31 2020 +0200
@@ -8,7 +8,17 @@
     CPPCHECK=$1
 fi
 
+cat <<EOF > /tmp/cppcheck-suppressions.txt
+constParameter:../../OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp
+nullPointerRedundantCheck:../../OrthancFramework/UnitTestsSources/DicomMapTests.cpp
+stlFindInsert:../../OrthancFramework/Sources/DicomFormat/DicomMap.cpp
+unreadVariable:../../OrthancFramework/Sources/FileStorage/StorageAccessor.cpp
+useInitializationList:../../OrthancFramework/Sources/Images/PngReader.cpp
+syntaxError:../../OrthancFramework/Sources/SQLite/FunctionContext.h
+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 \