diff options
author | stephan <stephan@noemail.net> | 2025-05-31 09:44:00 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2025-05-31 09:44:00 +0000 |
commit | b504aab848cb6f2c09cc227d0507db17d9af7dc4 (patch) | |
tree | 6f104eb2453ac12ccbced2fceb10adf397e0ef61 /src/btree.c | |
parent | d930d7ef14b2449bd9d8c18ed6aaf8a27a9f16d9 (diff) | |
download | sqlite-b504aab848cb6f2c09cc227d0507db17d9af7dc4.tar.gz sqlite-b504aab848cb6f2c09cc227d0507db17d9af7dc4.zip |
Add some missing UNUSED_PARAMETER() annotations to squelch downstream build warnings when using -Wextra -pedantic.
FossilOrigin-Name: a98a2f49355ec39c56e571c70d377675b1bd99a6d43cf9217b0eb1e081895d8e
Diffstat (limited to 'src/btree.c')
-rw-r--r-- | src/btree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/btree.c b/src/btree.c index 1bd59a1b1..ed1dde98c 100644 --- a/src/btree.c +++ b/src/btree.c @@ -2856,6 +2856,7 @@ static int removeFromSharingList(BtShared *pBt){ sqlite3_mutex_leave(pMainMtx); return removed; #else + UNUSED_PARAMETER( pBt ); return 1; #endif } @@ -11317,6 +11318,7 @@ void *sqlite3BtreeSchema(Btree *p, int nBytes, void(*xFree)(void *)){ */ int sqlite3BtreeSchemaLocked(Btree *p){ int rc; + UNUSED_PARAMETER(p); /* only used in DEBUG builds */ assert( sqlite3_mutex_held(p->db->mutex) ); sqlite3BtreeEnter(p); rc = querySharedCacheTableLock(p, SCHEMA_ROOT, READ_LOCK); |