From 2fde9dd46394cda25091065d234413af4e75494c Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Fri, 20 Nov 2020 16:42:45 -0800 Subject: 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. --- tools/run_cppcheck.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'tools') 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 $@ -- cgit v1.2.1