1
0
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:
drh
2018-08-16 16:24:24 +00:00
parent d8852095e0
commit 3fcef1a3f9
3 changed files with 8 additions and 8 deletions

View File

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