From 87cb97b0ec57e55e644f5fd8c0630823e37ec745 Mon Sep 17 00:00:00 2001 From: drh <> Date: Tue, 15 Oct 2024 22:22:53 +0000 Subject: Fix harmless compiler warning in flockCheckReservedLock(). FossilOrigin-Name: f369de3d8fa34a403b5c9f6269f7e3fdb16a13784a70460c5032ad4e66615d64 --- src/os_unix.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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; ); -- cgit v1.2.3