From 0945e827c6d52d81da596c46bf2eb05519532849 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 19 Jan 2019 21:42:01 +0100 Subject: [PATCH] Fixed #8931 (Missing error exitcode when an unmatched suppression is detected) --- cli/cppcheckexecutor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/cppcheckexecutor.cpp b/cli/cppcheckexecutor.cpp index 68215a238..33bf7681d 100644 --- a/cli/cppcheckexecutor.cpp +++ b/cli/cppcheckexecutor.cpp @@ -915,6 +915,8 @@ int CppCheckExecutor::check_internal(CppCheck& cppcheck, int /*argc*/, const cha if (settings.jointSuppressionReport) { for (std::map::const_iterator i = _files.begin(); i != _files.end(); ++i) { reportUnmatchedSuppressions(settings.nomsg.getUnmatchedLocalSuppressions(i->first, enableUnusedFunctionCheck)); + if (returnValue == 0) + returnValue = settings.exitCode; } }