Skip to content

Commit 784401e

Browse files
authored
Executor: adjusted some checks in hasToLog() (#7210)
1 parent a4fdfe9 commit 784401e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: cli/executor.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ Executor::Executor(const std::list<FileWithDetails> &files, const std::list<File
4040
// TODO: this logic is duplicated in CppCheck::reportErr()
4141
bool Executor::hasToLog(const ErrorMessage &msg)
4242
{
43-
if (!mSettings.library.reportErrors(msg.file0))
44-
return false;
43+
if (msg.severity == Severity::internal)
44+
return true;
4545

4646
if (!mSuppressions.isSuppressed(msg, {}))
4747
{

0 commit comments

Comments
 (0)