diff --git a/lib/checkfunctions.cpp b/lib/checkfunctions.cpp index e7adddcde..de211008a 100644 --- a/lib/checkfunctions.cpp +++ b/lib/checkfunctions.cpp @@ -292,6 +292,13 @@ void CheckFunctions::mathfunctionCallWarning(const Token *tok, const std::string //--------------------------------------------------------------------------- void CheckFunctions::memsetZeroBytes() { +// FIXME: +// Replace this with library configuration. +// For instance: +// +// +// + if (!_settings->isEnabled(Settings::WARNING)) return; @@ -320,6 +327,14 @@ void CheckFunctions::memsetZeroBytesError(const Token *tok) void CheckFunctions::memsetInvalid2ndParam() { +// FIXME: +// Replace this with library configuration. +// For instance: +// +// +// +// + const bool printPortability = _settings->isEnabled(Settings::PORTABILITY); const bool printWarning = _settings->isEnabled(Settings::WARNING); if (!printWarning && !printPortability)