Fixed #2924 (Unable to turn on unused function detection from command line)

This commit is contained in:
Daniel Marjamäki 2011-07-20 11:11:23 +02:00
parent 6ce5107e49
commit 5ea79677a3
1 changed files with 2 additions and 2 deletions

View File

@ -194,7 +194,7 @@ unsigned int CppCheck::processFile()
// This generates false positives - especially for libraries // This generates false positives - especially for libraries
const bool verbose_orig = _settings._verbose; const bool verbose_orig = _settings._verbose;
_settings._verbose = false; _settings._verbose = false;
if (_settings.isEnabled("unusedFunctions") && _settings._jobs == 1) if (_settings.isEnabled("unusedFunction") && _settings._jobs == 1)
{ {
_errout.str(""); _errout.str("");
if (_settings._errorsOnly == false) if (_settings._errorsOnly == false)
@ -292,7 +292,7 @@ void CppCheck::checkFile(const std::string &code, const char FileName[])
_tokenizer.fillFunctionList(); _tokenizer.fillFunctionList();
timer4.Stop(); timer4.Stop();
if (_settings.isEnabled("unusedFunctions") && _settings._jobs == 1) if (_settings.isEnabled("unusedFunction") && _settings._jobs == 1)
_checkUnusedFunctions.parseTokens(_tokenizer); _checkUnusedFunctions.parseTokens(_tokenizer);
// call all "runSimplifiedChecks" in all registered Check classes // call all "runSimplifiedChecks" in all registered Check classes