Try to make Travis happy
This commit is contained in:
parent
4cb9bb53eb
commit
2b4fe66908
|
@ -1108,9 +1108,6 @@ void ExprEngine::runChecks(ErrorLogger *errorLogger, const Tokenizer *tokenizer,
|
||||||
};
|
};
|
||||||
|
|
||||||
std::function<void(const Token *, const ExprEngine::Value &)> integerOverflow = [&](const Token *tok, const ExprEngine::Value &value) {
|
std::function<void(const Token *, const ExprEngine::Value &)> integerOverflow = [&](const Token *tok, const ExprEngine::Value &value) {
|
||||||
// Disable this check.. it's very noisy
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (!tok->isArithmeticalOp() || !tok->valueType() || !tok->valueType()->isIntegral() || tok->valueType()->pointer > 0)
|
if (!tok->isArithmeticalOp() || !tok->valueType() || !tok->valueType()->isIntegral() || tok->valueType()->pointer > 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -1145,6 +1142,8 @@ void ExprEngine::runChecks(ErrorLogger *errorLogger, const Tokenizer *tokenizer,
|
||||||
|
|
||||||
std::vector<ExprEngine::Callback> callbacks;
|
std::vector<ExprEngine::Callback> callbacks;
|
||||||
callbacks.push_back(divByZero);
|
callbacks.push_back(divByZero);
|
||||||
|
#ifdef VERIFY_INTEGEROVERFLOW
|
||||||
callbacks.push_back(integerOverflow);
|
callbacks.push_back(integerOverflow);
|
||||||
|
#endif
|
||||||
ExprEngine::executeAllFunctions(tokenizer, settings, callbacks);
|
ExprEngine::executeAllFunctions(tokenizer, settings, callbacks);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue