aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2023-12-24 11:43:49 +0000
committerdrh <>2023-12-24 11:43:49 +0000
commit5a85cf5879d1c875bd93ef3a572a59db5b57a96c (patch)
treeaafe622a156cfc36b3ad093eb12fc30e57153456 /src
parentc1805ab222214ddce9779691543117868291c7a0 (diff)
downloadsqlite-5a85cf5879d1c875bd93ef3a572a59db5b57a96c.tar.gz
sqlite-5a85cf5879d1c875bd93ef3a572a59db5b57a96c.zip
Fix harmless compiler warnings associated with [5db30bcc338aac1c]
FossilOrigin-Name: e55d1c2333f35fc20615aa83a7843d08cae7945710a2156d44eee0cc37d90ade
Diffstat (limited to 'src')
-rw-r--r--src/where.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/where.c b/src/where.c
index 0b56de6c1..bffca3413 100644
--- a/src/where.c
+++ b/src/where.c
@@ -2310,11 +2310,11 @@ void sqlite3WhereLoopPrint(const WhereLoop *p, const WhereClause *pWC){
}
}
void sqlite3ShowWhereLoop(const WhereLoop *p){
- sqlite3WhereLoopPrint(p, 0);
+ if( p ) sqlite3WhereLoopPrint(p, 0);
}
void sqlite3ShowWhereLoopList(const WhereLoop *p){
while( p ){
- sqlite3WhereLoopPrint(p, 0);
+ sqlite3ShowWhereLoop(p);
p = p->pNextLoop;
}
}
@@ -6643,6 +6643,11 @@ whereBeginError:
pParse->nQueryLoop = pWInfo->savedNQueryLoop;
whereInfoFree(db, pWInfo);
}
+#ifdef WHERETRACE_ENABLED
+ /* Prevent harmless compiler warnings about debugging routines
+ ** being declared but never used */
+ sqlite3ShowWhereLoopList(0);
+#endif /* WHERETRACE_ENABLED */
return 0;
}