1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-12-24 14:17:58 +03:00

Minor changes to silence compiler warnings on various MSVC builds.

FossilOrigin-Name: 115c978b6bbc110119a1b2f178cc30b33aaa27ef
This commit is contained in:
shaneh
2010-03-09 14:41:12 +00:00
parent ed6adb447f
commit 1da207e676
6 changed files with 19 additions and 25 deletions

View File

@@ -246,7 +246,9 @@ static void winMutexEnter(sqlite3_mutex *p){
#endif
}
static int winMutexTry(sqlite3_mutex *p){
#ifndef NDEBUG
DWORD tid = GetCurrentThreadId();
#endif
int rc = SQLITE_BUSY;
assert( p->id==SQLITE_MUTEX_RECURSIVE || winMutexNotheld2(p, tid) );
/*
@@ -284,7 +286,9 @@ static int winMutexTry(sqlite3_mutex *p){
** is not currently allocated. SQLite will never do either.
*/
static void winMutexLeave(sqlite3_mutex *p){
DWORD tid = GetCurrentThreadId();
#ifndef NDEBUG
DWORD tid = GetCurrentThreadId();
#endif
assert( p->nRef>0 );
assert( p->owner==tid );
p->nRef--;