diff --git a/lib/importproject.cpp b/lib/importproject.cpp index a27b3a49380..bc54a3c0ec8 100644 --- a/lib/importproject.cpp +++ b/lib/importproject.cpp @@ -1255,6 +1255,8 @@ bool ImportProject::importCppcheckGuiProject(std::istream &istr, Settings *setti temp.premiumArgs += std::string(" --") + child->GetText(); } } + else if (strcmp(node->Name(), CppcheckXml::ProjectNameElementName) == 0) + ; // no-op else { printError("Unknown element '" + std::string(node->Name()) + "' in Cppcheck project file"); return false; diff --git a/test/testimportproject.cpp b/test/testimportproject.cpp index e01457ff214..9e570943741 100644 --- a/test/testimportproject.cpp +++ b/test/testimportproject.cpp @@ -340,6 +340,7 @@ class TestImportProject : public TestFixture { " \n" " \n" " \n" + " test test\n" "\n"; std::istringstream istr(xml); Settings s;