Mercurial > hg > orthanc-stone
annotate Applications/Resources/RunCppCheck.sh @ 1726:0257339b0884
new method ParseDicomFromWadoCommand::IsSameCommand()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 01 Dec 2020 18:01:42 +0100 |
parents | 03afa09cfcf1 |
children | 51f10108c934 |
rev | line source |
---|---|
1571 | 1 #!/bin/bash |
2 | |
1589
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1583
diff
changeset
|
3 # Stone of Orthanc |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1583
diff
changeset
|
4 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1583
diff
changeset
|
5 # Department, University Hospital of Liege, Belgium |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1583
diff
changeset
|
6 # Copyright (C) 2017-2020 Osimis S.A., Belgium |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1583
diff
changeset
|
7 # |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1583
diff
changeset
|
8 # This program is free software: you can redistribute it and/or |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1583
diff
changeset
|
9 # modify it under the terms of the GNU Affero General Public License |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1583
diff
changeset
|
10 # as published by the Free Software Foundation, either version 3 of |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1583
diff
changeset
|
11 # the License, or (at your option) any later version. |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1583
diff
changeset
|
12 # |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1583
diff
changeset
|
13 # This program is distributed in the hope that it will be useful, but |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1583
diff
changeset
|
14 # WITHOUT ANY WARRANTY; without even the implied warranty of |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1583
diff
changeset
|
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1583
diff
changeset
|
16 # Affero General Public License for more details. |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1583
diff
changeset
|
17 # |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1583
diff
changeset
|
18 # You should have received a copy of the GNU Affero General Public License |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1583
diff
changeset
|
19 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1583
diff
changeset
|
20 |
8c5f9864545f
adding missing headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1583
diff
changeset
|
21 |
1571 | 22 set -ex |
23 | |
24 CPPCHECK=cppcheck | |
25 | |
26 if [ $# -ge 1 ]; then | |
27 CPPCHECK=$1 | |
28 fi | |
29 | |
30 cat <<EOF > /tmp/cppcheck-suppressions.txt | |
1573 | 31 stlFindInsert:../../Applications/Samples/WebAssembly/SingleFrameViewer/SingleFrameViewerApplication.h |
1680
03afa09cfcf1
running the tests of the Orthanc Framework in WebAssembly
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1639
diff
changeset
|
32 stlFindInsert:../../Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp:827 |
1571 | 33 unpreciseMathCall:../../OrthancStone/Sources/Scene2D/Internals/CairoFloatTextureRenderer.cpp |
34 unpreciseMathCall:../../OrthancStone/Sources/Scene2D/LookupTableTextureSceneLayer.cpp | |
1582 | 35 unreadVariable:../../OrthancStone/Sources/Viewport/SdlViewport.cpp:143 |
36 unreadVariable:../../OrthancStone/Sources/Viewport/SdlViewport.cpp:197 | |
1571 | 37 unusedFunction |
38 EOF | |
39 | |
40 ${CPPCHECK} --enable=all --quiet --std=c++11 \ | |
41 --suppressions-list=/tmp/cppcheck-suppressions.txt \ | |
1573 | 42 -DHAS_ORTHANC_EXCEPTION=1 \ |
1571 | 43 -DORTHANC_BUILDING_FRAMEWORK_LIBRARY=1 \ |
44 -DORTHANC_ENABLE_BASE64=1 \ | |
45 -DORTHANC_ENABLE_CIVETWEB=0 \ | |
46 -DORTHANC_ENABLE_CURL=1 \ | |
47 -DORTHANC_ENABLE_DCMTK=1 \ | |
48 -DORTHANC_ENABLE_DCMTK_JPEG=1 \ | |
49 -DORTHANC_ENABLE_DCMTK_JPEG_LOSSLESS=1 \ | |
50 -DORTHANC_ENABLE_GLEW=1 \ | |
51 -DORTHANC_ENABLE_JPEG=1 \ | |
52 -DORTHANC_ENABLE_LOCALE=1 \ | |
53 -DORTHANC_ENABLE_LOGGING=1 \ | |
54 -DORTHANC_ENABLE_LOGGING_STDIO=1 \ | |
55 -DORTHANC_ENABLE_MD5=1 \ | |
56 -DORTHANC_ENABLE_MONGOOSE=0 \ | |
57 -DORTHANC_ENABLE_OPENGL=1 \ | |
58 -DORTHANC_ENABLE_PKCS11=0 \ | |
59 -DORTHANC_ENABLE_PNG=1 \ | |
1639 | 60 -DORTHANC_ENABLE_PUGIXML=1 \ |
1571 | 61 -DORTHANC_ENABLE_SDL=1 \ |
62 -DORTHANC_ENABLE_SSL=1 \ | |
63 -DORTHANC_ENABLE_THREADS=1 \ | |
64 -DORTHANC_ENABLE_WASM=1 \ | |
65 -DORTHANC_ENABLE_ZLIB=1 \ | |
66 -DORTHANC_SANDBOXED=0 \ | |
67 -D__GNUC__ \ | |
68 -D__cplusplus=201103 \ | |
69 -D__linux__ \ | |
1573 | 70 -DEM_ASM \ |
1571 | 71 -UNDEBUG \ |
72 -I/home/jodogne/Subversion/orthanc/OrthancFramework/Sources \ | |
1583 | 73 -I/home/jodogne/Subversion/orthanc/OrthancServer/Plugins/Include/ \ |
1571 | 74 \ |
1573 | 75 ../../Applications/Samples \ |
76 ../../Applications/StoneWebViewer \ | |
1582 | 77 ../../OrthancStone/Sources \ |
78 \ | |
79 -i ../../Applications/Samples/RtViewerPlugin/i \ | |
80 -i ../../Applications/Samples/Sdl/i \ | |
81 -i ../../Applications/Samples/WebAssembly/i \ | |
82 -i ../../Applications/StoneWebViewer/Plugin/i \ | |
83 -i ../../Applications/StoneWebViewer/WebAssembly/StoneModule/i \ | |
84 -i ../../Applications/StoneWebViewer/WebAssembly/i \ | |
1639 | 85 -i ../../Applications/StoneWebViewer/WebAssembly/debug/ \ |
1571 | 86 \ |
87 2>&1 |