From 18b55a0ee1c031ef2cb7de6fbd3ae6776ff0321e Mon Sep 17 00:00:00 2001
From: Dimitrios Stoupis <dimitris.apple@gmail.com>
Date: Wed, 7 Aug 2019 12:15:57 +0000
Subject: [PATCH] Fix cppcheck errors

---
 ci/cppcheck-misra.sh | 3 +--
 ci/cppcheck.sh       | 3 ++-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ci/cppcheck-misra.sh b/ci/cppcheck-misra.sh
index c786402d..737eb6f2 100755
--- a/ci/cppcheck-misra.sh
+++ b/ci/cppcheck-misra.sh
@@ -34,5 +34,4 @@ python3 ci/summarizer.py --report ci/report.msr --suppress 3.1 5.1 5.2 5.3 12.3
 # clean up old files
 echo -e "\u001b[34;1mRemoving dump files...\u001b[0m"
 echo > ci/report.msr # clear the report file
-find inc/ src/ -type f -name "*.dump" | xargs rm
-
+find inc/ src/ -type f -name "*.dump" | xargs rm -rf
diff --git a/ci/cppcheck.sh b/ci/cppcheck.sh
index 8252d5a2..2179a051 100755
--- a/ci/cppcheck.sh
+++ b/ci/cppcheck.sh
@@ -12,4 +12,5 @@ echo -e "\u001b[34;1mStarting cppcheck...\u001b[0m"
 echo -e "\u001b[34;1mRunning cppcheck with default checklist...\u001b[0m"
 
 cd "$(dirname "$0")/.."
-cppcheck --enable=all --error-exitcode=1 -I inc src test
+cppcheck --enable=all --suppress=unusedFunction --suppress=noExplicitConstructor \
+    --inline-suppr --error-exitcode=1 -I inc src test
-- 
GitLab