/ Check-in [b10df2b5]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix the assert_fts3_nc() macro so that it works for test builds that omit SQLITE_DEBUG.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: b10df2b569e356551cf51ca179f307e4f8827413ee9feb886db1f1e0650e6c5f
User & Date: drh 2019-01-25 18:17:03
Context
2019-01-25
18:17
Fix harmless compiler warnings. check-in: 3ff220ad user: drh tags: trunk
18:17
Fix the assert_fts3_nc() macro so that it works for test builds that omit SQLITE_DEBUG. check-in: b10df2b5 user: drh tags: trunk
17:51
Fix harmless compiler warnings in fuzzcheck check-in: a8253966 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/fts3/fts3Int.h.

   130    130   #define POS_END     (0)     /* Position-list terminator */ 
   131    131   
   132    132   /*
   133    133   ** The assert_fts3_nc() macro is similar to the assert() macro, except that it
   134    134   ** is used for assert() conditions that are true only if it can be 
   135    135   ** guranteed that the database is not corrupt.
   136    136   */
   137         -#ifdef SQLITE_DEBUG
          137  +#if defined(SQLITE_DEBUG) || defined(SQLITE_TEST)
   138    138   extern int sqlite3_fts3_may_be_corrupt;
   139    139   # define assert_fts3_nc(x) assert(sqlite3_fts3_may_be_corrupt || (x))
   140    140   #else
   141    141   # define assert_fts3_nc(x) assert(x)
   142    142   #endif
   143    143   
   144    144   /*