Fixed #1892 (Verbosity setting set to false and not set back to original value)

Verbosity was set to false to temporarily reduce printing messages.
But it was not set back to its original value so rest of the
messages that should have been printed for verbose setting
enabled were not printed.
This commit is contained in:
Kimmo Varis 2010-07-21 16:26:59 +03:00
parent 618076a65f
commit 9b0851ed25
1 changed files with 2 additions and 0 deletions

View File

@ -733,6 +733,7 @@ unsigned int CppCheck::check()
}
// This generates false positives - especially for libraries
const bool verbose_orig = _settings._verbose;
_settings._verbose = false;
if (_settings.isEnabled("unusedFunctions") && _settings._jobs == 1)
{
@ -742,6 +743,7 @@ unsigned int CppCheck::check()
_checkUnusedFunctions.check(this);
}
_settings._verbose = verbose_orig;
_errorList.clear();
return exitcode;