1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

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
This commit is contained in:
drh
2025-01-13 11:28:34 +00:00
parent 14bc98d8e2
commit 43afab28a0
8 changed files with 34 additions and 24 deletions

View File

@@ -41,8 +41,9 @@ static struct MemFault {
** fire on any simulated malloc() failure.
*/
static void sqlite3Fault(void){
static int cnt = 0;
static u64 cnt = 0;
cnt++;
if( cnt>((u64)1<<63) ) abort();
}
/*
@@ -52,8 +53,9 @@ static void sqlite3Fault(void){
** This routine only runs on the first such failure.
*/
static void sqlite3FirstFault(void){
static int cnt2 = 0;
static u64 cnt2 = 0;
cnt2++;
if( cnt2>((u64)1<<63) ) abort();
}
/*