Remove C4189 in release builds
This commit is contained in:
parent
88b6e4a464
commit
19d05979ee
|
@ -834,11 +834,9 @@ void CheckBufferOverrun::valueFlowCheckArrayIndex(const Token * const tok, const
|
||||||
|
|
||||||
void CheckBufferOverrun::checkScope(const Token *tok, const ArrayInfo &arrayInfo)
|
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 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 unsigned int declarationId = arrayInfo.declarationId();
|
||||||
|
|
||||||
const bool isPortabilityEnabled = _settings->isEnabled("portability");
|
const bool isPortabilityEnabled = _settings->isEnabled("portability");
|
||||||
|
|
Loading…
Reference in New Issue