diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 2 | ||||
-rw-r--r-- | src/os_unix.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 732c085a9..9a8939382 100644 --- a/src/main.c +++ b/src/main.c @@ -4284,7 +4284,7 @@ int sqlite3_test_control(int op, ...){ break; } -#ifdef SQLITE_DEBUG +#if !defined(SQLITE_DEBUG) && !defined(SQLITE_OMIT_WSD) /* sqlite3_test_control(SQLITE_TESTCTRL_TUNE, id, *piValue) ** ** If "id" is an integer between 1 and SQLITE_NTUNE then set the value diff --git a/src/os_unix.c b/src/os_unix.c index 750b3e170..d45fdabab 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -8068,6 +8068,7 @@ int sqlite3_os_init(void){ } unixBigLock = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_VFS1); +#ifndef SQLITE_OMIT_WAL /* Validate lock assumptions */ assert( SQLITE_SHM_NLOCK==8 ); /* Number of available locks */ assert( UNIX_SHM_BASE==120 ); /* Start of locking area */ @@ -8083,6 +8084,8 @@ int sqlite3_os_init(void){ ** DMS UNIX_SHM_BASE+8 128 */ assert( UNIX_SHM_DMS==128 ); /* Byte offset of the deadman-switch */ +#endif + return SQLITE_OK; } |