1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Made code to remove unused parameter warning part of the conditional. Ticket #3610. (CVS 6219)

FossilOrigin-Name: c5dca1146de72071ed2e5fdf6890f41682272587
This commit is contained in:
shane
2009-01-30 16:09:22 +00:00
parent f71f89e842
commit 1a38964b50
3 changed files with 10 additions and 9 deletions

View File

@@ -11,7 +11,7 @@
*************************************************************************
** This file contains the C functions that implement mutexes for win32
**
** $Id: mutex_w32.c,v 1.14 2009/01/30 05:40:27 shane Exp $
** $Id: mutex_w32.c,v 1.15 2009/01/30 16:09:23 shane Exp $
*/
#include "sqliteInt.h"
@@ -195,7 +195,6 @@ static void winMutexEnter(sqlite3_mutex *p){
}
static int winMutexTry(sqlite3_mutex *p){
int rc = SQLITE_BUSY;
UNUSED_PARAMETER(p);
assert( p->id==SQLITE_MUTEX_RECURSIVE || winMutexNotheld(p) );
/*
** The sqlite3_mutex_try() routine is very rarely used, and when it
@@ -214,6 +213,8 @@ static int winMutexTry(sqlite3_mutex *p){
p->nRef++;
rc = SQLITE_OK;
}
#else
UNUSED_PARAMETER(p);
#endif
return rc;
}