Suppressions: Report error if bad suppression element is used

This commit is contained in:
Daniel Marjamäki 2018-04-10 16:26:00 +02:00
parent 1767fe525b
commit a2b8eb7405
1 changed files with 2 additions and 0 deletions

View File

@ -92,6 +92,8 @@ std::string Suppressions::parseXmlFile(const char *filename)
s.lineNumber = std::atoi(text);
else if (std::strcmp(e2->Name(), "symbolName") == 0)
s.symbolName = text;
else
return std::string("Unknown suppression element '") + e2->Name() + "'";
}
const std::string err = addSuppression(s);
if (!err.empty())