comparison OrthancStone/Resources/RunCppCheck.sh @ 1571:85e117739eca

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 21 Sep 2020 17:46:39 +0200
parents
children 32e0c007789d
comparison
equal deleted inserted replaced
1570:9a04f42098a3 1571:85e117739eca
1 #!/bin/bash
2
3 set -ex
4
5 CPPCHECK=cppcheck
6
7 if [ $# -ge 1 ]; then
8 CPPCHECK=$1
9 fi
10
11 cat <<EOF > /tmp/cppcheck-suppressions.txt
12 unpreciseMathCall:../../OrthancStone/Sources/Scene2D/Internals/CairoFloatTextureRenderer.cpp
13 unpreciseMathCall:../../OrthancStone/Sources/Scene2D/LookupTableTextureSceneLayer.cpp
14 unusedFunction
15 useInitializationList:../../OrthancStone/Sources/OpenGL/OpenGLProgram.cpp:36
16 unreadVariable:../../OrthancStone/Sources/Viewport/SdlViewport.cpp:135
17 unreadVariable:../../OrthancStone/Sources/Viewport/SdlViewport.cpp:193
18 EOF
19
20 ${CPPCHECK} --enable=all --quiet --std=c++11 \
21 --suppressions-list=/tmp/cppcheck-suppressions.txt \
22 -DORTHANC_BUILDING_FRAMEWORK_LIBRARY=1 \
23 -DORTHANC_ENABLE_BASE64=1 \
24 -DORTHANC_ENABLE_CIVETWEB=0 \
25 -DORTHANC_ENABLE_CURL=1 \
26 -DORTHANC_ENABLE_DCMTK=1 \
27 -DORTHANC_ENABLE_DCMTK_JPEG=1 \
28 -DORTHANC_ENABLE_DCMTK_JPEG_LOSSLESS=1 \
29 -DORTHANC_ENABLE_GLEW=1 \
30 -DORTHANC_ENABLE_JPEG=1 \
31 -DORTHANC_ENABLE_LOCALE=1 \
32 -DORTHANC_ENABLE_LOGGING=1 \
33 -DORTHANC_ENABLE_LOGGING_STDIO=1 \
34 -DORTHANC_ENABLE_MD5=1 \
35 -DORTHANC_ENABLE_MONGOOSE=0 \
36 -DORTHANC_ENABLE_OPENGL=1 \
37 -DORTHANC_ENABLE_PKCS11=0 \
38 -DORTHANC_ENABLE_PNG=1 \
39 -DORTHANC_ENABLE_PUGIXML=0 \
40 -DORTHANC_ENABLE_SDL=1 \
41 -DORTHANC_ENABLE_SSL=1 \
42 -DORTHANC_ENABLE_THREADS=1 \
43 -DORTHANC_ENABLE_WASM=1 \
44 -DORTHANC_ENABLE_ZLIB=1 \
45 -DORTHANC_SANDBOXED=0 \
46 -D__GNUC__ \
47 -D__cplusplus=201103 \
48 -D__linux__ \
49 -UNDEBUG \
50 -I/home/jodogne/Subversion/orthanc/OrthancFramework/Sources \
51 \
52 ../../OrthancStone/Sources \
53 \
54 2>&1