diff options
author | drh <drh@noemail.net> | 2006-03-16 16:19:56 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2006-03-16 16:19:56 +0000 |
commit | 3752785f933071c48e097ab2e690bc19a36ed955 (patch) | |
tree | 0f8af5016af04682373538f14ee979e575243581 /src/tclsqlite.c | |
parent | 3bc0e05c61eb083ecca0499172393627ee86f34b (diff) | |
download | sqlite-3752785f933071c48e097ab2e690bc19a36ed955.tar.gz sqlite-3752785f933071c48e097ab2e690bc19a36ed955.zip |
Fix some compiler warnings. (CVS 3140)
FossilOrigin-Name: 6c5175bc0f98e4ce715b099394f3fdc878ed82e8
Diffstat (limited to 'src/tclsqlite.c')
-rw-r--r-- | src/tclsqlite.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tclsqlite.c b/src/tclsqlite.c index 1c077bd8d..cc9b8def0 100644 --- a/src/tclsqlite.c +++ b/src/tclsqlite.c @@ -11,7 +11,7 @@ ************************************************************************* ** A TCL Interface to SQLite ** -** $Id: tclsqlite.c,v 1.154 2006/03/06 23:30:52 drh Exp $ +** $Id: tclsqlite.c,v 1.155 2006/03/16 16:19:56 drh Exp $ */ #ifndef NO_TCL /* Omit this whole file if TCL is unavailable */ @@ -1088,7 +1088,7 @@ static int DbObjCmd(void *cd, Tcl_Interp *interp, int objc,Tcl_Obj *const*objv){ fclose(in); return TCL_ERROR; } - sqlite3_exec(pDb->db, "BEGIN", 0, 0, 0); + (void)sqlite3_exec(pDb->db, "BEGIN", 0, 0, 0); zCommit = "COMMIT"; while( (zLine = local_getline(0, in))!=0 ){ char *z; @@ -1136,7 +1136,7 @@ static int DbObjCmd(void *cd, Tcl_Interp *interp, int objc,Tcl_Obj *const*objv){ free(azCol); fclose(in); sqlite3_finalize(pStmt); - sqlite3_exec(pDb->db, zCommit, 0, 0, 0); + (void)sqlite3_exec(pDb->db, zCommit, 0, 0, 0); if( zCommit[0] == 'C' ){ /* success, set result as number of lines processed */ @@ -1847,7 +1847,7 @@ static int DbObjCmd(void *cd, Tcl_Interp *interp, int objc,Tcl_Obj *const*objv){ } inTrans = !sqlite3_get_autocommit(pDb->db); if( !inTrans ){ - sqlite3_exec(pDb->db, zBegin, 0, 0, 0); + (void)sqlite3_exec(pDb->db, zBegin, 0, 0, 0); } rc = Tcl_EvalObjEx(interp, pScript, 0); if( !inTrans ){ @@ -1857,7 +1857,7 @@ static int DbObjCmd(void *cd, Tcl_Interp *interp, int objc,Tcl_Obj *const*objv){ } else { zEnd = "COMMIT"; } - sqlite3_exec(pDb->db, zEnd, 0, 0, 0); + (void)sqlite3_exec(pDb->db, zEnd, 0, 0, 0); } break; } |