aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2020-11-14 11:04:02 +0100
committerKristian Evers <kristianevers@gmail.com>2020-11-20 16:40:40 +0100
commiteb82aa83f2530e5e4df420ab64476b947bdc7f5d (patch)
tree9f42ba453de493db1a124f1ad3d66e1e4d2f5c49 /scripts
parent9e50c8c0e207191c4c7bb6883f7ad485df04fc2c (diff)
downloadPROJ-eb82aa83f2530e5e4df420ab64476b947bdc7f5d.tar.gz
PROJ-eb82aa83f2530e5e4df420ab64476b947bdc7f5d.zip
Raise error when ACCEPT_USE_OF_DEPRECATED_PROJ_API_H is defined
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/cppcheck.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/cppcheck.sh b/scripts/cppcheck.sh
index 1cfd61b5..4e76db94 100755
--- a/scripts/cppcheck.sh
+++ b/scripts/cppcheck.sh
@@ -22,7 +22,7 @@ for dirname in ${TOPDIR}/src; do
echo "Running cppcheck on $dirname... (can be long)"
if ! cppcheck --inline-suppr --template='{file}:{line},{severity},{id},{message}' \
--enable=all --inconclusive --std=posix \
- -DCPPCHECK -D__cplusplus=201103L -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H -DNAN \
+ -DCPPCHECK -D__cplusplus=201103L -DNAN \
-I${TOPDIR}/src -I${TOPDIR}/include \
"$dirname" \
-j 8 >>${LOG_FILE} 2>&1 ; then