enable moduloofone reports only with --enable=style (#2747)
... because it is reported with Severity::style
This commit is contained in:
parent
b56732ef20
commit
33fb0e782e
|
@ -3151,6 +3151,9 @@ void CheckOther::comparePointersError(const Token *tok, const ValueFlow::Value *
|
|||
|
||||
void CheckOther::checkModuloOfOne()
|
||||
{
|
||||
if (!mSettings->isEnabled(Settings::STYLE))
|
||||
return;
|
||||
|
||||
for (const Token *tok = mTokenizer->tokens(); tok; tok = tok->next()) {
|
||||
if (!tok->astOperand2() || !tok->astOperand1())
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue