Skip to content

Commit 853c271

Browse files
committed
Fix gcc warning; variable vidx is assigned but not read
1 parent 7aa85aa commit 853c271

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

lib/checkbufferoverrun.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -887,11 +887,9 @@ void CheckBufferOverrun::objectIndex()
887887
const Token *idx = tok->astOperand2();
888888
if (!idx || !obj)
889889
continue;
890-
const ValueFlow::Value* vidx = nullptr;
891890
if (idx->hasKnownIntValue()) {
892891
if (idx->getKnownIntValue() == 0)
893892
continue;
894-
vidx = &idx->values().front();
895893
}
896894
if (idx->hasKnownIntValue() && idx->getKnownIntValue() == 0)
897895
continue;

0 commit comments

Comments
 (0)