Fixed ticket #300 (wrong level given)

Enable checks of dangerous functions only when --style option used.

http://apps.sourceforge.net/trac/cppcheck/ticket/300
This commit is contained in:
Slava Semushin 2009-05-22 13:28:37 +07:00
parent 4bd1c3fb00
commit b2aaf5d4c7
1 changed files with 4 additions and 1 deletions

View File

@ -40,7 +40,10 @@ public:
void runSimplifiedChecks(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger)
{
CheckDangerousFunctionsClass checkDangerousFunctionsClass(tokenizer, settings, errorLogger);
checkDangerousFunctionsClass.dangerousFunctions();
if (settings->_checkCodingStyle)
{
checkDangerousFunctionsClass.dangerousFunctions();
}
}
/** Check for dangerous functions */