From 4032acf5d2b300d755aaf2d90f3178ebf28dcb69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 29 Aug 2024 16:12:29 +0200 Subject: [PATCH] test1 --- lib/cppcheck.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 4c3bcb7d0b69..cc85659a3de5 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -1635,9 +1635,8 @@ void CppCheck::reportErr(const ErrorMessage &msg) if (!mSettings.buildDir.empty()) mAnalyzerInformation.reportErr(msg); - if (!mSettings.supprs.nofail.isSuppressed(errorMessage) && !mSettings.supprs.nomsg.isSuppressed(errorMessage)) { - mExitCode = 1; - } + if (!mSettings.supprs.nofail.isSuppressed(errorMessage) && !mSettings.supprs.nomsg.isSuppressed(errorMessage)) + mExitCode = mSettings.exitCode; std::string remark; if (!msg.callStack.empty()) {