/ Check-in [848869ce]
Login

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

Overview
Comment:Fix a harmless compiler warning that only comes up during debug builds.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:848869ced988ca4d0ac76d43f984360fd11997a580719cccf8d55becea4e8fb1
User & Date: drh 2019-02-26 16:11:46
Context
2019-02-26
16:17
Use unsigned integers to count the number of pages in a freelist during an integrity_check, to avoid any possibility of a signed integer overflow. check-in: 05b87e07 user: drh tags: trunk
16:11
Fix a harmless compiler warning that only comes up during debug builds. check-in: 848869ce user: drh tags: trunk
12:29
Update the configure-generated makekfile to generate a portable pkgIndex.tcl. check-in: 35cbee7f user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/tokenize.c.

   556    556     int nErr = 0;                   /* Number of errors encountered */
   557    557     void *pEngine;                  /* The LEMON-generated LALR(1) parser */
   558    558     int n = 0;                      /* Length of the next token token */
   559    559     int tokenType;                  /* type of the next token */
   560    560     int lastTokenParsed = -1;       /* type of the previous token */
   561    561     sqlite3 *db = pParse->db;       /* The database connection */
   562    562     int mxSqlLen;                   /* Max length of an SQL string */
   563         -  VVA_ONLY( u8 startedWithOom = db->mallocFailed );
   564    563   #ifdef sqlite3Parser_ENGINEALWAYSONSTACK
   565    564     yyParser sEngine;    /* Space to hold the Lemon-generated Parser object */
   566    565   #endif
          566  +  VVA_ONLY( u8 startedWithOom = db->mallocFailed );
   567    567   
   568    568     assert( zSql!=0 );
   569    569     mxSqlLen = db->aLimit[SQLITE_LIMIT_SQL_LENGTH];
   570    570     if( db->nVdbeActive==0 ){
   571    571       db->u1.isInterrupted = 0;
   572    572     }
   573    573     pParse->rc = SQLITE_OK;