Fixed #8771 (Invalid line number on unmatchedSuppression)

This commit is contained in:
Daniel Marjamäki 2018-09-23 17:05:32 +02:00
parent 3a007cbcbf
commit 83e8465d18
1 changed files with 1 additions and 1 deletions

View File

@ -568,7 +568,7 @@ void ErrorLogger::reportUnmatchedSuppressions(const std::list<Suppressions::Supp
std::list<ErrorLogger::ErrorMessage::FileLocation> callStack;
if (!s.fileName.empty())
callStack.emplace_back(s.fileName, s.lineNumber);
callStack.emplace_back(s.fileName, std::max(0, s.lineNumber));
reportErr(ErrorLogger::ErrorMessage(callStack, emptyString, Severity::information, "Unmatched suppression: " + s.errorId, "unmatchedSuppression", false));
}
}