[epiphany/mcatanzaro/cppcheck-suppressions] Suppress various cppcheck warnings
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/mcatanzaro/cppcheck-suppressions] Suppress various cppcheck warnings
- Date: Sun, 17 Nov 2019 17:16:41 +0000 (UTC)
commit 3f63bb7ccdbf0f08ca640b4cddd3c65b7e7ed25b
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Nov 17 11:14:34 2019 -0600
Suppress various cppcheck warnings
cppcheck is throwing lots of plainly-incorrect false-positive warnings
for these issues. Sadly, some of these are important warnings, but they
are just not useful due to all the false positives, so we should
suppress them.
Hopefully clang's scan-build would be better at avoiding
false-positives.
.gitlab-ci.yml | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 476b592b4..1421a3aa1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,8 +19,23 @@ cppcheck:
allow_failure: true
before_script:
- apk update && apk add cppcheck
- script:
- - cppcheck --enable=all --suppress=variableScope --suppress=unusedFunction --force -q .
--error-exitcode=1 --library=gtk
+ script: >-
+ cppcheck .
+ --error-exitcode=1
+ --library=gtk
+ --quiet
+ --suppress=constArgument
+ --suppress=ctnullpointe
+ --suppress=deallocret
+ --suppress=leakNoVarFunctionCall
+ --suppress=memleak
+ --suppress=nullPointer
+ --suppress=variableScope
+ --suppress=unusedFunction
+ --suppress=varFuncNullUB
+ --suppress=*:lib/contrib/gvdb/*
+ --suppress=*:subprojects/*
+ --template=gcc
variables:
BUNDLE: 'epiphany-git.flatpak'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]