summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2020-11-20 16:42:45 -0800
committerPhilip Chimento <philip.chimento@gmail.com>2020-11-22 15:13:00 -0800
commit2fde9dd46394cda25091065d234413af4e75494c (patch)
tree45fd413f3d43055942b581cd6ff4faee2fff3ad9 /tools
parent068206950388a6820e120752263347595e358015 (diff)
downloadgjs-2fde9dd46394cda25091065d234413af4e75494c.tar.gz
CI: Avoid cppcheck false positives
Various changes to avoid false positives in cppcheck. The 'alternative int' specifier isn't known to cppcheck so always run the checks as if it is not defined. Cppcheck has trouble deducing the type of one 'auto' variable, so just replace it with its real type.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/run_cppcheck.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/run_cppcheck.sh b/tools/run_cppcheck.sh
index ab2671d7..1f542141 100755
--- a/tools/run_cppcheck.sh
+++ b/tools/run_cppcheck.sh
@@ -4,4 +4,5 @@
ninja -C _build
cppcheck --project=_build/compile_commands.json --inline-suppr \
--enable=warning,performance,portability,missingInclude \
+ -UHAVE_PRINTF_ALTERNATIVE_INT \
--library=gtk --force --quiet $@