aboutsummaryrefslogtreecommitdiff
path: root/src/tclsqlite.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2009-03-27 12:32:54 +0000
committerdrh <drh@noemail.net>2009-03-27 12:32:54 +0000
commit69910da997fa3973ef71aa1d94a93494da800fb8 (patch)
tree53a4a7df97820990743a122ebf6909dcaced0c6b /src/tclsqlite.c
parent62e5a81a5a92cec6498e2e85b9e8a16c4ca66535 (diff)
downloadsqlite-69910da997fa3973ef71aa1d94a93494da800fb8.tar.gz
sqlite-69910da997fa3973ef71aa1d94a93494da800fb8.zip
Fix some compiler warnings in test code. (CVS 6392)
FossilOrigin-Name: a43ecc9cb91ea8693e0fcce12c1bb5c5e4baf434
Diffstat (limited to 'src/tclsqlite.c')
-rw-r--r--src/tclsqlite.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tclsqlite.c b/src/tclsqlite.c
index 8959e6074..854bbb0f0 100644
--- a/src/tclsqlite.c
+++ b/src/tclsqlite.c
@@ -12,7 +12,7 @@
** A TCL Interface to SQLite. Append this file to sqlite3.c and
** compile the whole thing to build a TCL-enabled version of SQLite.
**
-** $Id: tclsqlite.c,v 1.239 2009/03/24 15:08:10 drh Exp $
+** $Id: tclsqlite.c,v 1.240 2009/03/27 12:32:55 drh Exp $
*/
#include "tcl.h"
#include <errno.h>
@@ -587,6 +587,7 @@ static void setTestUnlockNotifyVars(Tcl_Interp *interp, int iArg, int nArg){
#define setTestUnlockNotifyVars(x,y,z)
#endif
+#ifdef SQLITE_ENABLE_UNLOCK_NOTIFY
static void DbUnlockNotify(void **apArg, int nArg){
int i;
for(i=0; i<nArg; i++){
@@ -599,6 +600,7 @@ static void DbUnlockNotify(void **apArg, int nArg){
pDb->pUnlockNotify = 0;
}
}
+#endif
static void DbUpdateHandler(
void *p,