Travis: Fix xml validation by readding the line attribute in <location>.

This commit is contained in:
Daniel Marjamäki 2018-09-25 06:14:26 +02:00
parent 2f032d8fa7
commit ca5542131a
2 changed files with 2 additions and 3 deletions

View File

@ -401,8 +401,7 @@ std::string ErrorLogger::ErrorMessage::toXML() const
if (!file0.empty() && (*it).getfile() != file0)
printer.PushAttribute("file0", Path::toNativeSeparators(file0).c_str());
printer.PushAttribute("file", (*it).getfile().c_str());
if (it->line != (unsigned int)Suppressions::Suppression::NO_LINE)
printer.PushAttribute("line", (*it).line);
printer.PushAttribute("line", std::max((*it).line,0));
if (!it->getinfo().empty())
printer.PushAttribute("info", it->getinfo().c_str());
printer.CloseElement(false);

View File

@ -222,7 +222,7 @@ public:
std::string stringify() const;
unsigned int fileIndex;
unsigned int line;
int line; // negative value means "no line"
unsigned int col;
std::string getinfo() const {