Mercurial > hg > orthanc
annotate OrthancServer/Resources/RunCppCheck.sh @ 4428:a9a596ed988d
autodetection of SSL_CTX_get0_param()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 31 Dec 2020 16:42:46 +0100 |
parents | 029366f95217 |
children | f19de27a2465 |
rev | line source |
---|---|
4199 | 1 #!/bin/bash |
2 | |
3 set -ex | |
4 | |
5 CPPCHECK=cppcheck | |
6 | |
7 if [ $# -ge 1 ]; then | |
8 CPPCHECK=$1 | |
9 fi | |
10 | |
4203
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
11 cat <<EOF > /tmp/cppcheck-suppressions.txt |
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
12 constParameter:../../OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp |
4204 | 13 knownArgument:../../OrthancFramework/UnitTestsSources/ImageTests.cpp |
14 knownConditionTrueFalse:../../OrthancServer/Plugins/Engine/OrthancPlugins.cpp | |
4400 | 15 nullPointer:../../OrthancFramework/UnitTestsSources/RestApiTests.cpp:319 |
4203
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
16 nullPointerRedundantCheck:../../OrthancFramework/UnitTestsSources/DicomMapTests.cpp |
4299 | 17 stlFindInsert:../../OrthancFramework/Sources/DicomFormat/DicomMap.cpp:1163 |
4400 | 18 stlFindInsert:../../OrthancFramework/Sources/RestApi/RestApiCallDocumentation.cpp:174 |
19 stlFindInsert:../../OrthancFramework/Sources/RestApi/RestApiCallDocumentation.cpp:71 | |
4386 | 20 stlFindInsert:../../OrthancServer/Sources/OrthancWebDav.cpp:384 |
4206 | 21 stlFindInsert:../../OrthancServer/Sources/ServerIndex.cpp:400 |
4204 | 22 syntaxError:../../OrthancFramework/Sources/SQLite/FunctionContext.h:50 |
4356 | 23 syntaxError:../../OrthancFramework/UnitTestsSources/ZipTests.cpp:130 |
4299 | 24 syntaxError:../../OrthancServer/UnitTestsSources/UnitTestsMain.cpp:319 |
4206 | 25 uninitMemberVar:../../OrthancServer/Sources/ServerJobs/StorageCommitmentScpJob.cpp:427 |
4203
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
26 unreadVariable:../../OrthancFramework/Sources/FileStorage/StorageAccessor.cpp |
4386 | 27 unreadVariable:../../OrthancServer/Sources/OrthancRestApi/OrthancRestModalities.cpp:784 |
4207 | 28 unusedFunction |
4204 | 29 useInitializationList:../../OrthancFramework/Sources/Images/PngReader.cpp:89 |
4205 | 30 useInitializationList:../../OrthancServer/Sources/ServerJobs/DicomModalityStoreJob.cpp:285 |
4203
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
31 EOF |
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
32 |
4199 | 33 ${CPPCHECK} --enable=all --quiet --std=c++11 \ |
4203
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
34 --suppressions-list=/tmp/cppcheck-suppressions.txt \ |
4199 | 35 -DBOOST_HAS_DATE_TIME=1 \ |
36 -DBOOST_HAS_FILESYSTEM_V3=1 \ | |
37 -DBOOST_HAS_REGEX=1 \ | |
38 -DCIVETWEB_HAS_DISABLE_KEEP_ALIVE=1 \ | |
4253 | 39 -DCIVETWEB_HAS_WEBDAV_WRITING=1 \ |
4199 | 40 -DDCMTK_VERSION_NUMBER=365 \ |
4386 | 41 -DHAVE_MALLOPT=1 \ |
4199 | 42 -DMONGOOSE_USE_CALLBACKS=1 \ |
4398
38c22715bb56
fix RunCppCheck.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4386
diff
changeset
|
43 -DJSONCPP_VERSION_MAJOR=1 \ |
38c22715bb56
fix RunCppCheck.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4386
diff
changeset
|
44 -DJSONCPP_VERSION_MINOR=0 \ |
4199 | 45 -DORTHANC_BUILDING_FRAMEWORK_LIBRARY=0 \ |
46 -DORTHANC_BUILDING_SERVER_LIBRARY=1 \ | |
47 -DORTHANC_BUILD_UNIT_TESTS=1 \ | |
48 -DORTHANC_ENABLE_BASE64=1 \ | |
49 -DORTHANC_ENABLE_CIVETWEB=1 \ | |
50 -DORTHANC_ENABLE_CURL=1 \ | |
51 -DORTHANC_ENABLE_DCMTK=1 \ | |
52 -DORTHANC_ENABLE_DCMTK_JPEG=1 \ | |
53 -DORTHANC_ENABLE_DCMTK_JPEG_LOSSLESS=1 \ | |
54 -DORTHANC_ENABLE_DCMTK_NETWORKING=1 \ | |
55 -DORTHANC_ENABLE_DCMTK_TRANSCODING=1 \ | |
56 -DORTHANC_ENABLE_JPEG=1 \ | |
57 -DORTHANC_ENABLE_LOCALE=1 \ | |
58 -DORTHANC_ENABLE_LOGGING=1 \ | |
59 -DORTHANC_ENABLE_LOGGING_STDIO=1 \ | |
60 -DORTHANC_ENABLE_LUA=1 \ | |
61 -DORTHANC_ENABLE_MD5=1 \ | |
62 -DORTHANC_ENABLE_MONGOOSE=0 \ | |
63 -DORTHANC_ENABLE_PKCS11=1 \ | |
64 -DORTHANC_ENABLE_PLUGINS=1 \ | |
65 -DORTHANC_ENABLE_PNG=1 \ | |
66 -DORTHANC_ENABLE_PUGIXML=1 \ | |
67 -DORTHANC_ENABLE_SQLITE=1 \ | |
68 -DORTHANC_ENABLE_SSL=1 \ | |
69 -DORTHANC_ENABLE_ZLIB=1 \ | |
70 -DORTHANC_SANDBOXED=0 \ | |
71 -DORTHANC_SQLITE_VERSION=3027001 \ | |
72 -DORTHANC_UNIT_TESTS_LINK_FRAMEWORK=1 \ | |
73 -DPUGIXML_VERSION=150 \ | |
74 -DUNIT_TESTS_WITH_HTTP_CONNEXIONS=1 \ | |
75 -D__BYTE_ORDER=__LITTLE_ENDIAN \ | |
76 -D__GNUC__ \ | |
77 -D__cplusplus=201103 \ | |
78 -D__linux__ \ | |
79 -UNDEBUG \ | |
80 \ | |
81 ../../OrthancFramework/Sources \ | |
82 ../../OrthancFramework/UnitTestsSources \ | |
83 ../../OrthancServer/Plugins/Engine \ | |
84 ../../OrthancServer/Plugins/Include \ | |
85 ../../OrthancServer/Sources \ | |
86 ../../OrthancServer/UnitTestsSources \ | |
87 \ | |
4207 | 88 2>&1 |