Fixed #8931 (Missing error exitcode when an unmatched suppression is detected)

This commit is contained in:
Daniel Marjamäki 2019-01-19 21:42:01 +01:00
parent dfaba30290
commit 0945e827c6
1 changed files with 2 additions and 0 deletions

View File

@ -915,6 +915,8 @@ int CppCheckExecutor::check_internal(CppCheck& cppcheck, int /*argc*/, const cha
if (settings.jointSuppressionReport) {
for (std::map<std::string, std::size_t>::const_iterator i = _files.begin(); i != _files.end(); ++i) {
reportUnmatchedSuppressions(settings.nomsg.getUnmatchedLocalSuppressions(i->first, enableUnusedFunctionCheck));
if (returnValue == 0)
returnValue = settings.exitCode;
}
}