Fixed #8771 (Invalid line number on unmatchedSuppression)
This commit is contained in:
parent
3a007cbcbf
commit
83e8465d18
|
@ -568,7 +568,7 @@ void ErrorLogger::reportUnmatchedSuppressions(const std::list<Suppressions::Supp
|
||||||
|
|
||||||
std::list<ErrorLogger::ErrorMessage::FileLocation> callStack;
|
std::list<ErrorLogger::ErrorMessage::FileLocation> callStack;
|
||||||
if (!s.fileName.empty())
|
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));
|
reportErr(ErrorLogger::ErrorMessage(callStack, emptyString, Severity::information, "Unmatched suppression: " + s.errorId, "unmatchedSuppression", false));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue