Merge pull request #632 from Dmitry-Me/breakListTraversalEarly

Break list traversal once first match is found
This commit is contained in:
PKEuS 2015-08-06 21:22:13 +02:00
commit 4c843eb171
1 changed files with 3 additions and 1 deletions

View File

@ -366,8 +366,10 @@ void ErrorLogger::reportUnmatchedSuppressions(const std::list<Suppressions::Supp
for (std::list<Suppressions::SuppressionEntry>::const_iterator i2 = unmatched.begin(); i2 != unmatched.end(); ++i2) {
if (i2->id == "unmatchedSuppression") {
if ((i2->file == "*" || i2->file == i->file) &&
(i2->line == 0 || i2->line == i->line))
(i2->line == 0 || i2->line == i->line)) {
suppressed = true;
break;
}
}
}