diff options
author | drh <> | 2024-10-15 22:22:53 +0000 |
---|---|---|
committer | drh <> | 2024-10-15 22:22:53 +0000 |
commit | 87cb97b0ec57e55e644f5fd8c0630823e37ec745 (patch) | |
tree | 703be0e4a4743376bcc2a47e8448dda40d137b87 /src/os_unix.c | |
parent | 45b4dca606fbf70d901637328c4329275ba0e1f4 (diff) | |
download | sqlite-87cb97b0ec57e55e644f5fd8c0630823e37ec745.tar.gz sqlite-87cb97b0ec57e55e644f5fd8c0630823e37ec745.zip |
Fix harmless compiler warning in flockCheckReservedLock().
FossilOrigin-Name: f369de3d8fa34a403b5c9f6269f7e3fdb16a13784a70460c5032ad4e66615d64
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 2106dee8f..f71fa8e02 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -2464,7 +2464,11 @@ static int robust_flock(int fd, int op){ ** is set to SQLITE_OK unless an I/O error occurs during lock checking. */ static int flockCheckReservedLock(sqlite3_file *id, int *pResOut){ +#ifdef SQLITE_DEBUG unixFile *pFile = (unixFile*)id; +#else + UNUSED_PARAMETER(id); +#endif SimulateIOError( return SQLITE_IOERR_CHECKRESERVEDLOCK; ); |