diff --git a/lib/suppressions.cpp b/lib/suppressions.cpp index 8c65621cf..3ff7f5a41 100644 --- a/lib/suppressions.cpp +++ b/lib/suppressions.cpp @@ -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())