Remove C4189 in release builds

This commit is contained in:
Dmitry-Me 2015-02-20 11:00:34 +03:00
parent 88b6e4a464
commit 19d05979ee
1 changed files with 1 additions and 3 deletions

View File

@ -834,11 +834,9 @@ void CheckBufferOverrun::valueFlowCheckArrayIndex(const Token * const tok, const
void CheckBufferOverrun::checkScope(const Token *tok, const ArrayInfo &arrayInfo)
{
assert(tok->previous() != nullptr);
const MathLib::bigint total_size = arrayInfo.num(0) * arrayInfo.element_size();
const Token *scope_begin = tok->previous();
assert(scope_begin != 0);
const unsigned int declarationId = arrayInfo.declarationId();
const bool isPortabilityEnabled = _settings->isEnabled("portability");