summaryrefslogtreecommitdiff
path: root/tools/run_cppcheck.sh
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2020-11-20 16:06:23 -0800
committerPhilip Chimento <philip.chimento@gmail.com>2020-11-22 15:13:00 -0800
commit1074a575e55f5b85b1e2e35e7fe110248ad282ce (patch)
tree02de82ae9a661d0e38864a4351807d72f709976a /tools/run_cppcheck.sh
parent2fde9dd46394cda25091065d234413af4e75494c (diff)
downloadgjs-1074a575e55f5b85b1e2e35e7fe110248ad282ce.tar.gz
CI: Add cppcheck config file
This is needed because we are about to upgrade to a newer version of cppcheck than the one on the DockerHub image. It ships a "library file" for the GNOME platform, enabling some extra checks when using GLib and GTK APIs. It also requires configuration of some of the macros that we use.
Diffstat (limited to 'tools/run_cppcheck.sh')
-rwxr-xr-xtools/run_cppcheck.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/run_cppcheck.sh b/tools/run_cppcheck.sh
index 1f542141..8d4860db 100755
--- a/tools/run_cppcheck.sh
+++ b/tools/run_cppcheck.sh
@@ -5,4 +5,4 @@ ninja -C _build
cppcheck --project=_build/compile_commands.json --inline-suppr \
--enable=warning,performance,portability,missingInclude \
-UHAVE_PRINTF_ALTERNATIVE_INT \
- --library=gtk --force --quiet $@
+ --library=gtk,tools/cppcheck.cfg --force --quiet $@