Skip to content

Commit f4cc43a

Browse files
authored
ProcessExecutor: avoid explicit usage of suppressions (#4989)
The `hasToLog()` call performs this check.
1 parent d901661 commit f4cc43a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cli/processexecutor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ void ProcessExecutor::reportInternalChildErr(const std::string &childname, const
515515
"cppcheckError",
516516
Certainty::normal);
517517

518-
if (!mSuppressions.nomsg.isSuppressed(errmsg, {}))
518+
if (hasToLog(errmsg))
519519
mErrorLogger.reportErr(errmsg);
520520
}
521521

0 commit comments

Comments
 (0)