From d8a1440bd62c328b2bf7bc0cf8f34c59fef8becf Mon Sep 17 00:00:00 2001
From: Maxim Menshikov <maxim.menshikov@iopsys.eu>
Date: Fri, 2 Sep 2022 21:00:34 +0300
Subject: [PATCH] static-code-analysis/cppcheck: suppress unmatched
 suppressions The cppcheck invocation without suppression of unmatched
 suppressions expects that there would be at least one error of suppressed
 kind. If there are none, cppcheck fails as well. This patch enables ignoring
 errors of that kind.

Signed-off-by: Maxim Menshikov <maxim.menshikov@iopsys.eu>
---
 static-code-analysis.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/static-code-analysis.yml b/static-code-analysis.yml
index 4714f78..d670a87 100644
--- a/static-code-analysis.yml
+++ b/static-code-analysis.yml
@@ -3,7 +3,7 @@ variables:
   SOURCE_FOLDER: "src"
   SHELL_SRC: ""
   FLAWFINDER_OPTIONS: "-m 4 --error-level=4"
-  CPPCHECK_OPTIONS: " --enable=all --inline-suppr --suppress=unusedFunction --suppress=unreadVariable"
+  CPPCHECK_OPTIONS: " --enable=all --inline-suppr --suppress=unusedFunction --suppress=unreadVariable --suppress=unmatchedSuppression"
   CPD_OPTIONS: "--minimum-tokens 200 --language c --exclude ./test/cmocka --files"
   SHELLCHECK_OPTIONS: "-e SC2039,SC2034,SC1091 -S info"
   DEBUG: "FALSE"
-- 
GitLab