CheckOther::checkInvalidTestForOverflow: minor fix, only warn when warnings are enabled.
This commit is contained in:
parent
26a07265a8
commit
f6f4f27636
|
@ -2458,6 +2458,9 @@ void CheckOther::unusedLabelError(const Token* tok)
|
|||
|
||||
void CheckOther::checkInvalidTestForOverflow()
|
||||
{
|
||||
if (!_settings->isEnabled("warning"))
|
||||
return;
|
||||
|
||||
const SymbolDatabase *symbolDatabase = _tokenizer->getSymbolDatabase();
|
||||
const std::size_t functions = symbolDatabase->functionScopes.size();
|
||||
for (std::size_t i = 0; i < functions; ++i) {
|
||||
|
|
Loading…
Reference in New Issue