mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-14 00:22:38 +03:00
Suppress unused parameter warnings in sqlite3VdbeEnter() and related routines.
FossilOrigin-Name: f8e98ab3062a6e56924a86e8f3204c30d0f3d906
This commit is contained in:
@@ -978,6 +978,8 @@ static u32 mutexCounterSum(Vdbe *p){
|
||||
cntSum += sqlite3BtreeMutexCounter(aDb[i].pBt);
|
||||
}
|
||||
}
|
||||
#else
|
||||
UNUSED_PARAMETER(p);
|
||||
#endif
|
||||
return cntSum;
|
||||
}
|
||||
@@ -1017,6 +1019,8 @@ void sqlite3VdbeEnter(Vdbe *p){
|
||||
}
|
||||
}
|
||||
p->iMutexCounter = mutexCounterSum(p);
|
||||
#else
|
||||
UNUSED_PARAMETER(p);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -1041,6 +1045,8 @@ void sqlite3VdbeLeave(Vdbe *p){
|
||||
sqlite3BtreeLeave(aDb[i].pBt);
|
||||
}
|
||||
}
|
||||
#else
|
||||
UNUSED_PARAMETER(p);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -1065,6 +1071,8 @@ void sqlite3VdbeLeave(Vdbe *p){
|
||||
void sqlite3VdbeMutexResync(Vdbe *p){
|
||||
#if !defined(SQLITE_OMIT_SHARED_CACHE) && defined(SQLITE_DEBUG)
|
||||
p->iMutexCounter = mutexCounterSum(p);
|
||||
#else
|
||||
UNUSED_PARAMETER(p);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user