aboutsummaryrefslogtreecommitdiff
path: root/src/test8.c
diff options
context:
space:
mode:
authormistachkin <mistachkin@noemail.net>2015-01-12 21:43:00 +0000
committermistachkin <mistachkin@noemail.net>2015-01-12 21:43:00 +0000
commit9ab31fcee1b23700863377df7de1af0826b6df9c (patch)
tree5f29dc9c11cff0627a95af0d6f456ceb501b04bd /src/test8.c
parent8d9da63dacde128e546f84cb34392188aab1be83 (diff)
parent189143d355334b248d7748ae049a08591ec13d47 (diff)
downloadsqlite-9ab31fcee1b23700863377df7de1af0826b6df9c.tar.gz
sqlite-9ab31fcee1b23700863377df7de1af0826b6df9c.zip
Fix harmless compiler warnings when using -W4 with MSVC.
FossilOrigin-Name: e693e11d1b9265974c32bddba873ea30a4d0b708
Diffstat (limited to 'src/test8.c')
-rw-r--r--src/test8.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test8.c b/src/test8.c
index 407dd54c7..f37a28ced 100644
--- a/src/test8.c
+++ b/src/test8.c
@@ -777,11 +777,11 @@ static int echoBestIndex(sqlite3_vtab *tab, sqlite3_index_info *pIdxInfo){
sqlite3_stmt *pStmt = 0;
Tcl_Interp *interp = pVtab->interp;
- int nRow;
+ int nRow = 0;
int useIdx = 0;
int rc = SQLITE_OK;
int useCost = 0;
- double cost;
+ double cost = 0;
int isIgnoreUsable = 0;
if( Tcl_GetVar(interp, "echo_module_ignore_usable", TCL_GLOBAL_ONLY) ){
isIgnoreUsable = 1;
@@ -927,7 +927,7 @@ int echoUpdate(
sqlite3 *db = pVtab->db;
int rc = SQLITE_OK;
- sqlite3_stmt *pStmt;
+ sqlite3_stmt *pStmt = 0;
char *z = 0; /* SQL statement to execute */
int bindArgZero = 0; /* True to bind apData[0] to sql var no. nData */
int bindArgOne = 0; /* True to bind apData[1] to sql var no. 1 */