Omit uneeded checks
This commit is contained in:
parent
788da37e05
commit
ba423185b8
|
@ -2548,9 +2548,11 @@ void CheckOther::negativeBitwiseShiftError(const Token *tok)
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
void CheckOther::checkIncompleteArrayFill()
|
void CheckOther::checkIncompleteArrayFill()
|
||||||
{
|
{
|
||||||
|
if (!_settings->inconclusive)
|
||||||
|
return;
|
||||||
bool warning = _settings->isEnabled("warning");
|
bool warning = _settings->isEnabled("warning");
|
||||||
bool portability = _settings->isEnabled("portability");
|
bool portability = _settings->isEnabled("portability");
|
||||||
if (!_settings->inconclusive || (!portability && !warning))
|
if (!portability && !warning)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const SymbolDatabase *symbolDatabase = _tokenizer->getSymbolDatabase();
|
const SymbolDatabase *symbolDatabase = _tokenizer->getSymbolDatabase();
|
||||||
|
|
Loading…
Reference in New Issue