diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2018-09-18 14:00:48 +0200 |
|---|---|---|
| committer | Kristian Evers <kristianevers@gmail.com> | 2018-09-18 19:43:10 +0200 |
| commit | 66f228cfbcf6e47effc5771a29bfaa93b0bf5eb5 (patch) | |
| tree | a81f6fccec261d1b25c69e844ca067ed7870b70f /scripts/cppcheck.sh | |
| parent | eed0f16e8f85fff7fc8a190594fb39bc95cada74 (diff) | |
| download | PROJ-66f228cfbcf6e47effc5771a29bfaa93b0bf5eb5.tar.gz PROJ-66f228cfbcf6e47effc5771a29bfaa93b0bf5eb5.zip | |
Only allow usage of proj_api.h if explicit consent was given
We want to flag that proj_api_h is now deprecated. With this commit
it is now mandatory to #define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
before proj_api.h can be included.
proj_api.h is used internally a bunch of places. Therefore
ACCEPT_USE_OF_DEPRECATED_PROJ_API_H has been defined in projects.h
and a few other necessary files to ensure that PROJ compiles.
Closes #836
Diffstat (limited to 'scripts/cppcheck.sh')
| -rwxr-xr-x | scripts/cppcheck.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/cppcheck.sh b/scripts/cppcheck.sh index f1e19f81..bac95847 100755 --- a/scripts/cppcheck.sh +++ b/scripts/cppcheck.sh @@ -23,7 +23,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 \ + -DCPPCHECK -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H\ "$dirname" \ -j 8 >>${LOG_FILE} 2>&1 ; then echo "cppcheck failed" |
