From d35a26c6f0ef451acb040b7e2cf1d86cfef0cab3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 22 Jan 2019 19:40:39 +0100 Subject: [PATCH] --check-library fix --- cli/cppcheckexecutor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/cppcheckexecutor.cpp b/cli/cppcheckexecutor.cpp index 7aa6e5c4f..456d374f3 100644 --- a/cli/cppcheckexecutor.cpp +++ b/cli/cppcheckexecutor.cpp @@ -912,7 +912,7 @@ int CppCheckExecutor::check_internal(CppCheck& cppcheck, int /*argc*/, const cha if (settings.isEnabled(Settings::INFORMATION) || settings.checkConfiguration) { const bool enableUnusedFunctionCheck = cppcheck.isUnusedFunctionCheckEnabled(); - if (settings.jointSuppressionReport && !settings.checkLibrary) { + if (settings.jointSuppressionReport) { for (std::map::const_iterator i = _files.begin(); i != _files.end(); ++i) { const bool err = reportUnmatchedSuppressions(settings.nomsg.getUnmatchedLocalSuppressions(i->first, enableUnusedFunctionCheck)); if (err && returnValue == 0)