From c5896b5cbb03e3b0f22a25b8ac7f03deb4d90079 Mon Sep 17 00:00:00 2001 From: mistachkin Date: Tue, 12 Apr 2016 20:15:12 +0000 Subject: [PATCH] Even more compiler warning fixes. FossilOrigin-Name: 7faec9ea335c53953338886398b85aef87348a1c --- ext/session/test_session.c | 5 ++--- manifest | 17 +++++++---------- manifest.uuid | 2 +- src/tclsqlite.c | 2 +- 4 files changed, 11 insertions(+), 15 deletions(-) diff --git a/ext/session/test_session.c b/ext/session/test_session.c index 15f7b6f575..1aa63b74ed 100644 --- a/ext/session/test_session.c +++ b/ext/session/test_session.c @@ -314,7 +314,8 @@ static void test_append_value(Tcl_Obj *pList, sqlite3_value *pVal){ pObj = Tcl_NewStringObj(z, n); break; } - case SQLITE_BLOB: + default: + assert( sqlite3_value_type(pVal)==SQLITE_BLOB ); Tcl_ListObjAppendElement(0, pList, Tcl_NewStringObj("b", 1)); pObj = Tcl_NewByteArrayObj( sqlite3_value_blob(pVal), @@ -871,7 +872,6 @@ static int test_sqlite3session_foreach( pOld = Tcl_NewObj(); if( op!=SQLITE_INSERT ){ - int i; for(i=0; ipWalHook; if( choice==DB_UPDATE_HOOK ) ppHook = &pDb->pUpdateHook; if( choice==DB_ROLLBACK_HOOK ) ppHook = &pDb->pRollbackHook;