comparison Applications/Resources/RunCppCheck.sh @ 1639:5cdc5b98f14d

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 10 Nov 2020 16:41:11 +0100
parents 8c5f9864545f
children 03afa09cfcf1
comparison
equal deleted inserted replaced
1638:754ef576d945 1639:5cdc5b98f14d
27 CPPCHECK=$1 27 CPPCHECK=$1
28 fi 28 fi
29 29
30 cat <<EOF > /tmp/cppcheck-suppressions.txt 30 cat <<EOF > /tmp/cppcheck-suppressions.txt
31 stlFindInsert:../../Applications/Samples/WebAssembly/SingleFrameViewer/SingleFrameViewerApplication.h 31 stlFindInsert:../../Applications/Samples/WebAssembly/SingleFrameViewer/SingleFrameViewerApplication.h
32 stlFindInsert:../../Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp:685 32 stlFindInsert:../../Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp:703
33 unpreciseMathCall:../../OrthancStone/Sources/Scene2D/Internals/CairoFloatTextureRenderer.cpp 33 unpreciseMathCall:../../OrthancStone/Sources/Scene2D/Internals/CairoFloatTextureRenderer.cpp
34 unpreciseMathCall:../../OrthancStone/Sources/Scene2D/LookupTableTextureSceneLayer.cpp 34 unpreciseMathCall:../../OrthancStone/Sources/Scene2D/LookupTableTextureSceneLayer.cpp
35 unreadVariable:../../OrthancStone/Sources/Viewport/SdlViewport.cpp:143 35 unreadVariable:../../OrthancStone/Sources/Viewport/SdlViewport.cpp:143
36 unreadVariable:../../OrthancStone/Sources/Viewport/SdlViewport.cpp:197 36 unreadVariable:../../OrthancStone/Sources/Viewport/SdlViewport.cpp:197
37 unusedFunction 37 unusedFunction
38 useInitializationList:../../OrthancStone/Sources/OpenGL/OpenGLProgram.cpp:36
39 EOF 38 EOF
40 39
41 ${CPPCHECK} --enable=all --quiet --std=c++11 \ 40 ${CPPCHECK} --enable=all --quiet --std=c++11 \
42 --suppressions-list=/tmp/cppcheck-suppressions.txt \ 41 --suppressions-list=/tmp/cppcheck-suppressions.txt \
43 -DHAS_ORTHANC_EXCEPTION=1 \ 42 -DHAS_ORTHANC_EXCEPTION=1 \
56 -DORTHANC_ENABLE_MD5=1 \ 55 -DORTHANC_ENABLE_MD5=1 \
57 -DORTHANC_ENABLE_MONGOOSE=0 \ 56 -DORTHANC_ENABLE_MONGOOSE=0 \
58 -DORTHANC_ENABLE_OPENGL=1 \ 57 -DORTHANC_ENABLE_OPENGL=1 \
59 -DORTHANC_ENABLE_PKCS11=0 \ 58 -DORTHANC_ENABLE_PKCS11=0 \
60 -DORTHANC_ENABLE_PNG=1 \ 59 -DORTHANC_ENABLE_PNG=1 \
61 -DORTHANC_ENABLE_PUGIXML=0 \ 60 -DORTHANC_ENABLE_PUGIXML=1 \
62 -DORTHANC_ENABLE_SDL=1 \ 61 -DORTHANC_ENABLE_SDL=1 \
63 -DORTHANC_ENABLE_SSL=1 \ 62 -DORTHANC_ENABLE_SSL=1 \
64 -DORTHANC_ENABLE_THREADS=1 \ 63 -DORTHANC_ENABLE_THREADS=1 \
65 -DORTHANC_ENABLE_WASM=1 \ 64 -DORTHANC_ENABLE_WASM=1 \
66 -DORTHANC_ENABLE_ZLIB=1 \ 65 -DORTHANC_ENABLE_ZLIB=1 \
81 -i ../../Applications/Samples/Sdl/i \ 80 -i ../../Applications/Samples/Sdl/i \
82 -i ../../Applications/Samples/WebAssembly/i \ 81 -i ../../Applications/Samples/WebAssembly/i \
83 -i ../../Applications/StoneWebViewer/Plugin/i \ 82 -i ../../Applications/StoneWebViewer/Plugin/i \
84 -i ../../Applications/StoneWebViewer/WebAssembly/StoneModule/i \ 83 -i ../../Applications/StoneWebViewer/WebAssembly/StoneModule/i \
85 -i ../../Applications/StoneWebViewer/WebAssembly/i \ 84 -i ../../Applications/StoneWebViewer/WebAssembly/i \
85 -i ../../Applications/StoneWebViewer/WebAssembly/debug/ \
86 \ 86 \
87 2>&1 87 2>&1