Skip to content

Commit 75f6013

Browse files
committed
Fixed cppcheck-opensource#4755 (buggy --xml reports in 1.59)
1 parent c795f6e commit 75f6013

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cli/cmdlineparser.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,10 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[])
691691
PrintMessage("cppcheck: unusedFunction check can't be used with '-j' option, so it's disabled.");
692692
}
693693

694+
if (_settings->inconclusive && _settings->_xml && _settings->_xml_version == 1U) {
695+
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).");
696+
}
697+
694698
if (argc <= 1)
695699
_showHelp = true;
696700

0 commit comments

Comments
 (0)