From 5ea79677a30dac81fecd84a53ae841ea92179512 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 20 Jul 2011 11:11:23 +0200 Subject: [PATCH] Fixed #2924 (Unable to turn on unused function detection from command line) --- lib/cppcheck.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 19402bce4..dbb44eac9 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -194,7 +194,7 @@ unsigned int CppCheck::processFile() // This generates false positives - especially for libraries const bool verbose_orig = _settings._verbose; _settings._verbose = false; - if (_settings.isEnabled("unusedFunctions") && _settings._jobs == 1) + if (_settings.isEnabled("unusedFunction") && _settings._jobs == 1) { _errout.str(""); if (_settings._errorsOnly == false) @@ -292,7 +292,7 @@ void CppCheck::checkFile(const std::string &code, const char FileName[]) _tokenizer.fillFunctionList(); timer4.Stop(); - if (_settings.isEnabled("unusedFunctions") && _settings._jobs == 1) + if (_settings.isEnabled("unusedFunction") && _settings._jobs == 1) _checkUnusedFunctions.parseTokens(_tokenizer); // call all "runSimplifiedChecks" in all registered Check classes