aboutsummaryrefslogtreecommitdiff
path: root/ext/misc/closure.c
diff options
context:
space:
mode:
authordrh <>2025-01-13 11:28:34 +0000
committerdrh <>2025-01-13 11:28:34 +0000
commit43afab28a09659f7869661a8e56f21865af2414d (patch)
treea9299a76f9b1624d642e00f24fb2945d0b64e8af /ext/misc/closure.c
parent14bc98d8e2a7d07b98bf679b9e586043dd772bf3 (diff)
downloadsqlite-43afab28a09659f7869661a8e56f21865af2414d.tar.gz
sqlite-43afab28a09659f7869661a8e56f21865af2414d.zip
GCC 13 has become more quite pedantic about the signature of functions matching the
type of pointers through which the functions are called. Make adjustments to extension functions and test procedures to work around this. No changes to the core. FossilOrigin-Name: ed83b79100b4345235aec990303c4526874f0c2f8701160c4639a80633ebaf70
Diffstat (limited to 'ext/misc/closure.c')
-rw-r--r--ext/misc/closure.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/misc/closure.c b/ext/misc/closure.c
index 79a5a21d1..267ae1c42 100644
--- a/ext/misc/closure.c
+++ b/ext/misc/closure.c
@@ -589,11 +589,16 @@ static int closureOpen(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCursor){
}
/*
+** Wrapper around sqlite3_free
+*/
+static void closureMemFree(closure_avl *p){ sqlite3_free(p); }
+
+/*
** Free up all the memory allocated by a cursor. Set it rLimit to 0
** to indicate that it is at EOF.
*/
static void closureClearCursor(closure_cursor *pCur){
- closureAvlDestroy(pCur->pClosure, (void(*)(closure_avl*))sqlite3_free);
+ closureAvlDestroy(pCur->pClosure, closureMemFree);
sqlite3_free(pCur->zTableName);
sqlite3_free(pCur->zIdColumn);
sqlite3_free(pCur->zParentColumn);