]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Fix compiler warnings in fts5.
authordan <dan@noemail.net>
Thu, 14 Jan 2016 14:15:54 +0000 (14:15 +0000)
committerdan <dan@noemail.net>
Thu, 14 Jan 2016 14:15:54 +0000 (14:15 +0000)
FossilOrigin-Name: 5a343cc0336bba056df4449e6cd2e3fb9e75a105

ext/fts5/fts5Int.h
ext/fts5/fts5_config.c
ext/fts5/fts5_expr.c
ext/fts5/fts5_index.c
ext/fts5/fts5_main.c
manifest
manifest.uuid

index 1a3d57ca262842d3151609099aa9634330c521fa..2a16ec065f790539c435572c562503d8a2a89daa 100644 (file)
@@ -424,7 +424,6 @@ int sqlite3Fts5IndexSetAverages(Fts5Index *p, const u8*, int);
 /*
 ** Functions called by the storage module as part of integrity-check.
 */
-u64 sqlite3Fts5IndexCksum(Fts5Config*,i64,int,int,const char*,int);
 int sqlite3Fts5IndexIntegrityCheck(Fts5Index*, u64 cksum);
 
 /* 
index fd6da7f11ef8246efe66d00954120fc9f2177cf8..d9778bca20868ed9649e27b20ee1eb10fa5e899c 100644 (file)
@@ -379,7 +379,7 @@ static int fts5ConfigParseSpecial(
       { 0, 0 }
     };
 
-    if( rc = fts5ConfigSetEnum(aDetail, zArg, &pConfig->eDetail) ){
+    if( (rc = fts5ConfigSetEnum(aDetail, zArg, &pConfig->eDetail)) ){
       *pzErr = sqlite3_mprintf("malformed detail=... directive");
     }
     return rc;
index 16209bf4ba2eb272ed60833d0f47d08e1b7dcf29..409fbd1d050dfd050f757bbcc20be5bfa6ed1f9b 100644 (file)
@@ -2428,7 +2428,7 @@ static int fts5ExprCheckPoslists(Fts5ExprNode *pNode, i64 iRowid){
             return 0;
           }
         }
-        return 1;
+        break;
       }
 
       case FTS5_OR: {
@@ -2453,10 +2453,11 @@ static int fts5ExprCheckPoslists(Fts5ExprNode *pNode, i64 iRowid){
           fts5ExprClearPoslists(pNode);
           return 0;
         }
-        return 1;
+        break;
       }
     }
   }
+  return 1;
 }
 
 void sqlite3Fts5ExprCheckPoslists(Fts5Expr *pExpr, i64 iRowid){
index 2488cd7ca9c499a33d0a511dbf502175659912ed..cc5b8ea5215370edbc1881c6642615c707f03411 100644 (file)
@@ -1772,8 +1772,6 @@ static void fts5SegIterNext_Reverse(
   if( pIter->iRowidOffset>0 ){
     u8 *a = pIter->pLeaf->p;
     int iOff;
-    int nPos;
-    int bDummy;
     i64 iDelta;
 
     pIter->iRowidOffset--;
@@ -1821,7 +1819,7 @@ static void fts5SegIterNext_None(
   if( iOff<pIter->iEndofDoclist ){
     /* Next entry is on the current page */
     i64 iDelta;
-    iOff += sqlite3Fts5GetVarint(&pIter->pLeaf->p[iOff], &iDelta);
+    iOff += sqlite3Fts5GetVarint(&pIter->pLeaf->p[iOff], (u64*)&iDelta);
     pIter->iLeafOffset = iOff;
     pIter->iRowid += iDelta;
   }else if( (pIter->flags & FTS5_SEGITER_ONETERM)==0 ){
index ba8903c9a7abef2e185c5c706865b7ba7975114d..fec589efcb010c07a4035ee7872cef49471b717d 100644 (file)
@@ -310,13 +310,6 @@ static int fts5IsContentless(Fts5Table *pTab){
   return pTab->pConfig->eContent==FTS5_CONTENT_NONE;
 }
 
-/*
-** Return true if pTab is an offsetless table.
-*/
-static int fts5IsOffsetless(Fts5Table *pTab){
-  return pTab->pConfig->eDetail!=FTS5_DETAIL_FULL;
-}
-
 /*
 ** Delete a virtual table handle allocated by fts5InitVtab(). 
 */
index 566a67eeac7b3d6867c2c0e657bc08ba825de515..7290cda6dcc124dcf9ee140573fc7b339f1bc35b 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Fix\sharmless\scompiler\swarnings\sin\sRBU\sand\sadd\sRBU\sto\sthe\sautoconf\sand\swindows\nmakefiles.
-D 2016-01-14T13:22:24.150
+C Fix\scompiler\swarnings\sin\sfts5.
+D 2016-01-14T14:15:54.059
 F Makefile.in cfa1ac03c4b414992fd53f24d978b45b0c21de55
 F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434
 F Makefile.msc 1dc36cfd3c047c9685e539257e158485f16ef035
@@ -97,14 +97,14 @@ F ext/fts3/unicode/mkunicode.tcl 95cf7ec186e48d4985e433ff8a1c89090a774252
 F ext/fts3/unicode/parseunicode.tcl da577d1384810fb4e2b209bf3313074353193e95
 F ext/fts5/extract_api_docs.tcl a36e54ec777172ddd3f9a88daf593b00848368e0
 F ext/fts5/fts5.h ff9c2782e8ed890b0de2f697a8d63971939e70c7
-F ext/fts5/fts5Int.h 3918045ebceb1d600c9c1c1b460489ff0c788e96
+F ext/fts5/fts5Int.h 3a09b2eaeac2860d7afc59843796a9410f818ebf
 F ext/fts5/fts5_aux.c 2dafc3aee0c70d643140c77d8d70daffa51a9e9e
 F ext/fts5/fts5_buffer.c 87204c8b3b8bc62b27376eab09b74d6d5acc41f1
-F ext/fts5/fts5_config.c b0ed7b0ddd785fb4d4e6f9037d357f8aa95918e6
-F ext/fts5/fts5_expr.c 6eba2220747ea1b20a358fb3b34b2ab78323e285
+F ext/fts5/fts5_config.c 9c243d04ac0ca997d2d2e2252891f2a10fbd7217
+F ext/fts5/fts5_expr.c 510db45967ca359f64f2ba2c707ab57d740cad56
 F ext/fts5/fts5_hash.c 1b113977296cf4212c6ec667d5e3f2bd18036955
-F ext/fts5/fts5_index.c 5ab044a67919e2c9f42f0288a39778136154511e
-F ext/fts5/fts5_main.c 03bd44e4bd0ba16213ca9259ad5df1d4d743fd7e
+F ext/fts5/fts5_index.c 11e2b566b8b29fb42bb970969c92f3a33c2c1125
+F ext/fts5/fts5_main.c 488ceecdb4400ecc6a3d3b2247cedef153955388
 F ext/fts5/fts5_storage.c f7b2d330dd7b29a9f4da09f6d85879ca8c41b2e8
 F ext/fts5/fts5_tcl.c 18e9382d8cdad4c05b49559c68494968b9b4a4fb
 F ext/fts5/fts5_test_mi.c 1ec66ffdf7632077fbd773b7a6df5153272ec070
@@ -1412,7 +1412,7 @@ F tool/vdbe_profile.tcl 246d0da094856d72d2c12efec03250d71639d19f
 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
 F tool/warnings.sh 48bd54594752d5be3337f12c72f28d2080cb630b
 F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f
-P 74808a79ea3194f6cc00084b9dccc380846a6051
-R e29cff8691de1217f1757056bcfdb892
-U drh
-Z 1e6a858f101158e4efde76213bfd70e5
+P fabe78c5d8ab353988f6fe0decacd651edc17ec2
+R fee981891bfd69d76d7d5d050236b09c
+U dan
+Z 4d3da4cf65c48965923bd47b765f8e62
index 6ea6f0c03cb40e8ccb54e7f7e8f2cf46d40085f9..3b2733f52ba350eace6a2f38901e5bf2c8dd2fe5 100644 (file)
@@ -1 +1 @@
-fabe78c5d8ab353988f6fe0decacd651edc17ec2
\ No newline at end of file
+5a343cc0336bba056df4449e6cd2e3fb9e75a105
\ No newline at end of file