diff --git a/src/checkdangerousfunctions.h b/src/checkdangerousfunctions.h index 26b043509..fb26180f1 100644 --- a/src/checkdangerousfunctions.h +++ b/src/checkdangerousfunctions.h @@ -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 */