Fix gcc warning; variable vidx is assigned but not read
This commit is contained in:
parent
7aa85aa408
commit
853c271f22
|
@ -887,11 +887,9 @@ void CheckBufferOverrun::objectIndex()
|
||||||
const Token *idx = tok->astOperand2();
|
const Token *idx = tok->astOperand2();
|
||||||
if (!idx || !obj)
|
if (!idx || !obj)
|
||||||
continue;
|
continue;
|
||||||
const ValueFlow::Value* vidx = nullptr;
|
|
||||||
if (idx->hasKnownIntValue()) {
|
if (idx->hasKnownIntValue()) {
|
||||||
if (idx->getKnownIntValue() == 0)
|
if (idx->getKnownIntValue() == 0)
|
||||||
continue;
|
continue;
|
||||||
vidx = &idx->values().front();
|
|
||||||
}
|
}
|
||||||
if (idx->hasKnownIntValue() && idx->getKnownIntValue() == 0)
|
if (idx->hasKnownIntValue() && idx->getKnownIntValue() == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue