Omit uneeded checks

This commit is contained in:
Dmitry-Me 2015-04-02 10:26:19 +03:00
parent 788da37e05
commit ba423185b8
1 changed files with 3 additions and 1 deletions

View File

@ -2548,9 +2548,11 @@ void CheckOther::negativeBitwiseShiftError(const Token *tok)
//---------------------------------------------------------------------------
void CheckOther::checkIncompleteArrayFill()
{
if (!_settings->inconclusive)
return;
bool warning = _settings->isEnabled("warning");
bool portability = _settings->isEnabled("portability");
if (!_settings->inconclusive || (!portability && !warning))
if (!portability && !warning)
return;
const SymbolDatabase *symbolDatabase = _tokenizer->getSymbolDatabase();