Merge pull request #585 from Dmitry-Me/omitUneededCheck

Omit uneeded checks
This commit is contained in:
PKEuS 2015-04-02 12:04:39 +02:00
commit 4644e2a9a6
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();