Remove compilation warrnings from sqlcipher.
authorBartlomiej Grzelewski <b.grzelewski@samsung.com>
Thu, 24 Jul 2014 10:41:13 +0000 (12:41 +0200)
committerBartlomiej Grzelewski <b.grzelewski@samsung.com>
Fri, 12 Sep 2014 12:59:26 +0000 (14:59 +0200)
Change-Id: Ie9b9edcc4c113b228fcebc79a672109842aaaf73

src/manager/sqlcipher/sqlcipher.c

index 48a0673..a3a430e 100644 (file)
@@ -12978,13 +12978,12 @@ SQLCIPHER_PRIVATE int sqlcipher3CodecAttach(sqlcipher3* db, int nDb, const void
   sqlcipher_activate();
 
   if(nKey && zKey && pDb->pBt) {
-    int rc;
     Pager *pPager = pDb->pBt->pBt->pPager;
     sqlcipher3_file *fd = sqlcipher3Pager_get_fd(pPager);
     codec_ctx *ctx;
 
     /* point the internal codec argument against the contet to be prepared */
-    rc = sqlcipher_codec_ctx_init(&ctx, pDb, pDb->pBt->pBt->pPager, fd, zKey, nKey); 
+    sqlcipher_codec_ctx_init(&ctx, pDb, pDb->pBt->pBt->pPager, fd, zKey, nKey); 
 
     sqlcipher3pager_sqlcipher3PagerSetCodec(sqlcipher3BtreePager(pDb->pBt), sqlcipher3Codec, NULL, sqlcipher3FreeCodecArg, (void *) ctx);
 
@@ -13003,6 +13002,7 @@ SQLCIPHER_PRIVATE int sqlcipher3CodecAttach(sqlcipher3* db, int nDb, const void
 }
 
 SQLCIPHER_API void sqlcipher3_activate_see(const char* in) {
+    (void) in;
   /* do nothing, security enhancements are always active */
 }
 
@@ -13501,6 +13501,8 @@ int sqlcipher_codec_ctx_init(codec_ctx **iCtx, Db *pDb, Pager *pPager, sqlcipher
   *iCtx = sqlcipher_malloc(sizeof(codec_ctx));
   ctx = *iCtx;
 
+  (void) pPager;
+
   if(ctx == NULL) return SQLCIPHER_NOMEM;
 
   memset(ctx, 0, sizeof(codec_ctx)); /* initialize all pointers and values to 0 */
@@ -13834,7 +13836,9 @@ void sqlcipher_exportFunc(sqlcipher3_context *context, int argc, sqlcipher3_valu
   int rc = SQLCIPHER_OK;     /* Return code from service routines */
   char *zSql = NULL;         /* SQL statements */
   char *pzErrMsg = NULL;
-  
+
+  (void) argc;
+
   saved_flags = db->flags;
   saved_nChange = db->nChange;
   saved_nTotalChange = db->nTotalChange;