mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Fix a harmless unused-variable compiler warning that only came up in certain
compile-time configurations. FossilOrigin-Name: 456842924bb33c0af8af29402f06e5f25b6791f698a0d12a080258b20b0cfb61
This commit is contained in:
@@ -2111,7 +2111,7 @@ static int unixClose(sqlite3_file *id){
|
||||
*/
|
||||
assert( pFile->pInode->nLock>0 || pFile->pInode->bProcessLock==0 );
|
||||
sqlite3_mutex_enter(pInode->pLockMutex);
|
||||
if( pFile->pInode->nLock ){
|
||||
if( pInode->nLock ){
|
||||
/* If there are outstanding locks, do not actually close the file just
|
||||
** yet because that would clear those locks. Instead, add the file
|
||||
** descriptor to pInode->pUnused list. It will be automatically closed
|
||||
|
||||
Reference in New Issue
Block a user