]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Fix compiler warnings in rbu code.
authordan <dan@noemail.net>
Fri, 28 Aug 2015 16:41:45 +0000 (16:41 +0000)
committerdan <dan@noemail.net>
Fri, 28 Aug 2015 16:41:45 +0000 (16:41 +0000)
FossilOrigin-Name: 0fdc36fe35ae2fc8e9688fe6c53437f4d47502d9

ext/rbu/sqlite3rbu.c
manifest
manifest.uuid

index 7c7480bcfc17df6411c25e548db582021366c8a0..d76d2f4ccd8184bfde5eb55f71b3b498efec59f7 100644 (file)
@@ -489,7 +489,7 @@ static int rbuDeltaApply(
           /* ERROR: copy exceeds output file size */
           return -1;
         }
-        if( ofst+cnt > lenSrc ){
+        if( (int)(ofst+cnt) > lenSrc ){
           /* ERROR: copy extends past end of input */
           return -1;
         }
@@ -504,7 +504,7 @@ static int rbuDeltaApply(
           /* ERROR:  insert command gives an output larger than predicted */
           return -1;
         }
-        if( cnt>lenDelta ){
+        if( (int)cnt>lenDelta ){
           /* ERROR: insert count exceeds size of delta */
           return -1;
         }
@@ -1117,7 +1117,7 @@ static void rbuTableType(
   }
 
 rbuTableType_end: {
-    int i;
+    unsigned int i;
     for(i=0; i<sizeof(aStmt)/sizeof(aStmt[0]); i++){
       rbuFinalize(p, aStmt[i]);
     }
@@ -1530,7 +1530,7 @@ static char *rbuObjIterGetSetlist(
   if( p->rc==SQLITE_OK ){
     int i;
 
-    if( strlen(zMask)!=pIter->nTblCol ){
+    if( (int)strlen(zMask)!=pIter->nTblCol ){
       rbuBadControlError(p);
     }else{
       const char *zSep = "";
@@ -3680,7 +3680,8 @@ static int rbuVfsOpen(
     rbuVfsShmMap,                 /* xShmMap */
     rbuVfsShmLock,                /* xShmLock */
     rbuVfsShmBarrier,             /* xShmBarrier */
-    rbuVfsShmUnmap                /* xShmUnmap */
+    rbuVfsShmUnmap,               /* xShmUnmap */
+    0, 0                          /* xFetch, xUnfetch */
   };
   rbu_vfs *pRbuVfs = (rbu_vfs*)pVfs;
   sqlite3_vfs *pRealVfs = pRbuVfs->pRealVfs;
index ae51413a308313cb998fb982e1024a3a82c90a80..f4ea3f942dee8f9fe893182ed8e3131209674e7b 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C When\ssearching\sthe\swal\sfile\sfor\sa\sframe,\sdo\snot\ssearch\sthat\spart\sthat\swas\salready\scheckpointed\swhen\sthe\stransaction\swas\sopened.
-D 2015-08-28T16:18:45.828
+C Fix\scompiler\swarnings\sin\srbu\scode.
+D 2015-08-28T16:41:45.530
 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
 F Makefile.in e2218eb228374422969de7b1680eda6864affcef
 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
@@ -226,7 +226,7 @@ F ext/rbu/rbufault.test cc0be8d5d392d98b0c2d6a51be377ea989250a89
 F ext/rbu/rbufault2.test 9a7f19edd6ea35c4c9f807d8a3db0a03a5670c06
 F ext/rbu/rbufts.test 828cd689da825f0a7b7c53ffc1f6f7fdb6fa5bda
 F ext/rbu/rbusave.test 0f43b6686084f426ddd040b878426452fd2c2f48
-F ext/rbu/sqlite3rbu.c 1650e682b3568db0ed97ff2c7ba5d1c8ea060a84
+F ext/rbu/sqlite3rbu.c 4ba82bd850aa012f73c31dd242d570f18c9cc35a
 F ext/rbu/sqlite3rbu.h 5357f070cd8c0bcad459b620651ec1656859e4d0
 F ext/rbu/test_rbu.c 2a3652241fa45d5eaa141775e4ae68c1d3582c03
 F ext/rtree/README 6315c0d73ebf0ec40dedb5aa0e942bc8b54e3761
@@ -1380,7 +1380,7 @@ F tool/vdbe_profile.tcl 67746953071a9f8f2f668b73fe899074e2c6d8c1
 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
 F tool/warnings.sh 48bd54594752d5be3337f12c72f28d2080cb630b
 F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f
-P 64abb65d4df11e5b3bcc4afc8e7c18e907c6080a ab93024da7bd577d8850b417aff8597a8b3807fc
-R 3ba2e96fe96df838d1a765a1a1eb0bee
+P a84cf4f5d326270a61faf4ff867260f2dd1e68a6
+R 25627e3633787096f1c6a6ac573b9337
 U dan
-Z e63e6f4df8bd62c2964d64d0b85672a7
+Z 8fac2bb28cf0b676d514df6920f608e8
index f8e9087de28bfaffe7873f007038c4f9ffe88e9e..453c3b2f4dc3eab22d21f07b46ec7d13e42b4350 100644 (file)
@@ -1 +1 @@
-a84cf4f5d326270a61faf4ff867260f2dd1e68a6
\ No newline at end of file
+0fdc36fe35ae2fc8e9688fe6c53437f4d47502d9
\ No newline at end of file