aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-05-05 18:52:54 +0000
committerdrh <drh@noemail.net>2015-05-05 18:52:54 +0000
commit0c6ab89b4108e6c8f0fd9e56c00e9651ddaebb3d (patch)
treec3fd0f1d24df811ff7659c10b25c8d4d2a5e5f05 /src
parent0a96931b76e9b68e73d312bcc479d54b818a26cb (diff)
downloadsqlite-0c6ab89b4108e6c8f0fd9e56c00e9651ddaebb3d.tar.gz
sqlite-0c6ab89b4108e6c8f0fd9e56c00e9651ddaebb3d.zip
Remove four lines of superfluous code identified by clang scan-build.
FossilOrigin-Name: 04afa3febee32854fbb09ef8d4ffffd432119716
Diffstat (limited to 'src')
-rw-r--r--src/printf.c2
-rw-r--r--src/vdbe.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/src/printf.c b/src/printf.c
index 05f2ff5a6..1d50d7790 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -253,7 +253,6 @@ void sqlite3VXPrintf(
}
}while( !done && (c=(*++fmt))!=0 );
/* Get the field width */
- width = 0;
if( c=='*' ){
if( bArgList ){
width = (int)getIntArg(pArgList);
@@ -277,7 +276,6 @@ void sqlite3VXPrintf(
/* Get the precision */
if( c=='.' ){
- precision = 0;
c = *++fmt;
if( c=='*' ){
if( bArgList ){
diff --git a/src/vdbe.c b/src/vdbe.c
index e03f30c7c..7f97de137 100644
--- a/src/vdbe.c
+++ b/src/vdbe.c
@@ -985,7 +985,6 @@ case OP_Halt: {
assert( rc==SQLITE_OK || db->nDeferredCons>0 || db->nDeferredImmCons>0 );
rc = p->rc ? SQLITE_ERROR : SQLITE_DONE;
}
- pOp = &aOp[pcx];
goto vdbe_return;
}
@@ -5913,7 +5912,6 @@ case OP_JournalMode: { /* out2 */
}
eNew = sqlite3PagerSetJournalMode(pPager, eNew);
- pOut = &aMem[pOp->p2];
pOut->flags = MEM_Str|MEM_Static|MEM_Term;
pOut->z = (char *)sqlite3JournalModename(eNew);
pOut->n = sqlite3Strlen30(pOut->z);