Fix ticket #434 (Unused function gets reported dozens of times)
http://sourceforge.net/apps/trac/cppcheck/ticket/434 Using --unused-functions with -j will now print out error message: "cppcheck: error: --unused-functions can't be used with -j option."
This commit is contained in:
parent
a415ab1e5c
commit
ea0035ec3a
|
@ -248,6 +248,11 @@ std::string CppCheck::parseFromArgs(int argc, const char* const argv[])
|
|||
pathnames.push_back(argv[i]);
|
||||
}
|
||||
|
||||
if (_settings._unusedFunctions && _settings._jobs > 1)
|
||||
{
|
||||
return "cppcheck: error: --unused-functions can't be used with -j option.\n";
|
||||
}
|
||||
|
||||
if (pathnames.size() > 0)
|
||||
{
|
||||
// Execute RecursiveAddFiles() to each given file parameter
|
||||
|
|
Loading…
Reference in New Issue