Skip to content

Commit

Permalink
Exclude qgsgcptransformer.cpp from cppcheck scanning
Browse files Browse the repository at this point in the history
This file causes cppcheck to hang indefinitely. Suppressing warnings
is not sufficient, we need to completely exclude this file from the
scan.
  • Loading branch information
nyalldawson committed Apr 6, 2023
1 parent 3b963da commit 9db94dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/cppcheck.sh
Expand Up @@ -19,6 +19,8 @@ LOG_FILE=/tmp/cppcheck_qgis.txt
rm -f ${LOG_FILE}
echo "Checking ${SCRIPT_DIR}/../src ..."

# qgsgcptransformer.cpp causes an effective hang on newer cppcheck!

cppcheck --library=qt.cfg --inline-suppr \
--template='{file}:{line},{severity},{id},{message}' \
--enable=all --inconclusive --std=c++11 \
Expand All @@ -34,6 +36,7 @@ cppcheck --library=qt.cfg --inline-suppr \
-DQ_NOWARN_DEPRECATED_PUSH= \
-DQ_NOWARN_DEPRECATED_POP= \
-DQ_DECLARE_OPAQUE_POINTER= \
-i src/analysis/georeferencing/qgsgcptransformer.cpp \
-j $(nproc) \
${SCRIPT_DIR}/../src \
>>${LOG_FILE} 2>&1 &
Expand Down

0 comments on commit 9db94dd

Please sign in to comment.