aboutsummaryrefslogtreecommitdiff
path: root/scripts/cppcheck.sh
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-02-06 23:33:38 +0100
committerEven Rouault <even.rouault@spatialys.com>2020-02-06 23:33:38 +0100
commitc8f8a5a6c522fcd18b2ca42d4345bc9be115abd3 (patch)
tree0718ef93fbff2c0a07ba1d3a3f1a72301ab2c96a /scripts/cppcheck.sh
parent9e1420309c075ff1cc74514e39d0cf6da1e4e19c (diff)
downloadPROJ-c8f8a5a6c522fcd18b2ca42d4345bc9be115abd3.tar.gz
PROJ-c8f8a5a6c522fcd18b2ca42d4345bc9be115abd3.zip
Fix cppcheck warnings and make it work with latest cppcheck 1.90
Diffstat (limited to 'scripts/cppcheck.sh')
-rwxr-xr-xscripts/cppcheck.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/cppcheck.sh b/scripts/cppcheck.sh
index f42d5f6d..1cfd61b5 100755
--- a/scripts/cppcheck.sh
+++ b/scripts/cppcheck.sh
@@ -43,6 +43,10 @@ grep -v "unmatchedSuppression" ${LOG_FILE} \
| grep -v "passedByValue,Function parameter 'xyz' should be passed by const reference" \
| grep -v "passedByValue,Function parameter 'in' should be passed by const reference" \
| grep -v "knownConditionTrueFalse,Condition '!allowEmptyIntersection' is always false" \
+ | grep -v -e "unitconvert.*unreadVariable,Variable 'point.*' is assigned a value that is never used" \
+ | grep -v -e "helmert.*unreadVariable,Variable 'point.*' is assigned a value that is never used" \
+ | grep -v -e "molodensky.*unreadVariable,Variable 'point.*' is assigned a value that is never used" \
+ | grep -v -e "vgridshift.*unreadVariable,Variable 'point.*' is assigned a value that is never used" \
> ${LOG_FILE}.tmp
mv ${LOG_FILE}.tmp ${LOG_FILE}