diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2020-11-20 16:42:45 -0800 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2020-11-22 15:13:00 -0800 |
commit | 2fde9dd46394cda25091065d234413af4e75494c (patch) | |
tree | 45fd413f3d43055942b581cd6ff4faee2fff3ad9 /tools | |
parent | 068206950388a6820e120752263347595e358015 (diff) | |
download | gjs-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-x | tools/run_cppcheck.sh | 1 |
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 $@ |