diff options
author | drh <> | 2024-12-13 01:29:22 +0000 |
---|---|---|
committer | drh <> | 2024-12-13 01:29:22 +0000 |
commit | 9ee02515c45b8de7586e01024221cd9eb4d9b40b (patch) | |
tree | b514ddde5152553ff42660671bad22c71bf82164 /src | |
parent | 35d302ccb1d79b801d0b8c6a564ab6c1e492df43 (diff) | |
download | sqlite-9ee02515c45b8de7586e01024221cd9eb4d9b40b.tar.gz sqlite-9ee02515c45b8de7586e01024221cd9eb4d9b40b.zip |
Fix a harmless compiler warning that comes up when using SQLITE_DEBUG in
separate compilation mode.
FossilOrigin-Name: 52e0f8cab9852538da0778d5f57dd85b0774e764157692111a007aecd963f10a
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 2 | ||||
-rw-r--r-- | src/where.c | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c index 5e9a03a47..1163deb6e 100644 --- a/src/main.c +++ b/src/main.c @@ -4271,7 +4271,6 @@ int sqlite3_test_control(int op, ...){ ** issue "defined but not used" warnings. */ if( x==9999 ){ sqlite3ShowExpr(0); - sqlite3ShowExpr(0); sqlite3ShowExprList(0); sqlite3ShowIdList(0); sqlite3ShowSrcList(0); @@ -4288,7 +4287,6 @@ int sqlite3_test_control(int op, ...){ sqlite3ShowWinFunc(0); #endif sqlite3ShowSelect(0); - sqlite3ShowWhereTerm(0); } #endif break; diff --git a/src/where.c b/src/where.c index 20ebaa8cd..c9698699b 100644 --- a/src/where.c +++ b/src/where.c @@ -7144,6 +7144,7 @@ whereBeginError: ){ if( (db->flags & SQLITE_VdbeAddopTrace)==0 ) return; sqlite3VdbePrintOp(0, pc, pOp); + sqlite3ShowWhereTerm(0); /* So compiler won't complain about unused func */ } #endif |