Merge pull request #528 from Dmitry-Me/removeC4189

Remove C4189 in release builds
This commit is contained in:
amai2012 2015-02-20 12:28:14 +01:00
commit 3c891f7960
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");