diff --git a/lib/checkother.cpp b/lib/checkother.cpp index ae4d43341..138c8a5bf 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -3190,6 +3190,9 @@ void CheckOther::checkDuplicateBranch() if (!_settings->_checkCodingStyle) return; + if (!_settings->inconclusive) + return; + const SymbolDatabase *symbolDatabase = _tokenizer->getSymbolDatabase(); std::list::const_iterator scope; diff --git a/test/testother.cpp b/test/testother.cpp index c518fec65..739c2cd94 100644 --- a/test/testother.cpp +++ b/test/testother.cpp @@ -129,6 +129,7 @@ private: Settings settings; settings._checkCodingStyle = true; + settings.inconclusive = true; // Tokenize.. Tokenizer tokenizer(&settings, this);