Fixed #4755 (buggy --xml reports in 1.59)

This commit is contained in:
Daniel Marjamäki 2013-05-20 16:19:31 +02:00
parent c795f6e2f7
commit 75f6013d13
1 changed files with 4 additions and 0 deletions

View File

@ -691,6 +691,10 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[])
PrintMessage("cppcheck: unusedFunction check can't be used with '-j' option, so it's disabled."); PrintMessage("cppcheck: unusedFunction check can't be used with '-j' option, so it's disabled.");
} }
if (_settings->inconclusive && _settings->_xml && _settings->_xml_version == 1U) {
PrintMessage("cppcheck: inconclusive messages will not be shown, because the old xml format is not compatible. It's recommended to use the new xml format (use --xml-version=2).");
}
if (argc <= 1) if (argc <= 1)
_showHelp = true; _showHelp = true;