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

Fix another compiler warning in the test logic of tclsqlite.c. (CVS 6393)

FossilOrigin-Name: 47ffc4dca8f106d0da8cbc0a8ff7453016e9b40d
This commit is contained in:
drh
2009-03-27 12:44:35 +00:00
parent 69910da997
commit bcf4f4840b
3 changed files with 10 additions and 10 deletions

View File

@@ -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.240 2009/03/27 12:32:55 drh Exp $
** $Id: tclsqlite.c,v 1.241 2009/03/27 12:44:35 drh Exp $
*/
#include "tcl.h"
#include <errno.h>
@@ -575,7 +575,7 @@ static void DbRollbackHandler(void *clientData){
}
}
#ifdef SQLITE_TEST
#if defined(SQLITE_TEST) && defined(SQLITE_ENABLE_UNLOCK_NOTIFY)
static void setTestUnlockNotifyVars(Tcl_Interp *interp, int iArg, int nArg){
char zBuf[64];
sprintf(zBuf, "%d", iArg);
@@ -584,7 +584,7 @@ static void setTestUnlockNotifyVars(Tcl_Interp *interp, int iArg, int nArg){
Tcl_SetVar(interp, "sqlite_unlock_notify_argcount", zBuf, TCL_GLOBAL_ONLY);
}
#else
#define setTestUnlockNotifyVars(x,y,z)
# define setTestUnlockNotifyVars(x,y,z)
#endif
#ifdef SQLITE_ENABLE_UNLOCK_NOTIFY