1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-01 06:27:03 +03:00

Fix harmless compiler warning in flockCheckReservedLock().

FossilOrigin-Name: f369de3d8fa34a403b5c9f6269f7e3fdb16a13784a70460c5032ad4e66615d64
This commit is contained in:
drh
2024-10-15 22:22:53 +00:00
parent 45b4dca606
commit 87cb97b0ec
3 changed files with 11 additions and 7 deletions

View File

@ -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; );