From ba423185b82c3af92b2ef3f133bc12cc09b41978 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Thu, 2 Apr 2015 10:26:19 +0300 Subject: [PATCH] Omit uneeded checks --- lib/checkother.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/checkother.cpp b/lib/checkother.cpp index f2a769226..ce8154398 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -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();