1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Fix a harmless compiler warning (a shadowed local variable) in analyze.c.

FossilOrigin-Name: a1ad7fb38bb38909ca2fddee31c7a8001f10686f
This commit is contained in:
drh
2011-01-24 19:14:06 +00:00
parent 27381bd519
commit 906b662060
3 changed files with 21 additions and 11 deletions

View File

@@ -286,11 +286,11 @@ static void analyzeOneTable(
}
sqlite3VdbeAddOp2(v, OP_Goto, 0, endOfLoop);
for(i=0; i<nCol; i++){
int addr = sqlite3VdbeCurrentAddr(v) - (nCol*2);
int addr2 = sqlite3VdbeCurrentAddr(v) - (nCol*2);
if( i==0 ){
sqlite3VdbeJumpHere(v, addr-1); /* Set jump dest for the OP_IfNot */
sqlite3VdbeJumpHere(v, addr2-1); /* Set jump dest for the OP_IfNot */
}
sqlite3VdbeJumpHere(v, addr); /* Set jump dest for the OP_Ne */
sqlite3VdbeJumpHere(v, addr2); /* Set jump dest for the OP_Ne */
sqlite3VdbeAddOp2(v, OP_AddImm, iMem+i+1, 1);
sqlite3VdbeAddOp3(v, OP_Column, iIdxCur, i, iMem+nCol+i+1);
}