CheckOther::checkSuspiciousEqualityComparison: check if --inconclusive has been used since the message is inconclusive

This commit is contained in:
Daniel Marjamäki 2013-05-20 16:05:21 +02:00
parent 2c8360c607
commit c795f6e2f7
1 changed files with 1 additions and 1 deletions

View File

@ -1058,7 +1058,7 @@ void CheckOther::suspiciousCaseInSwitchError(const Token* tok, const std::string
//---------------------------------------------------------------------------
void CheckOther::checkSuspiciousEqualityComparison()
{
if (!_settings->isEnabled("warning"))
if (!_settings->isEnabled("warning") || !_settings->inconclusive)
return;
for (const Token *tok = _tokenizer->tokens(); tok; tok = tok->next()) {