/ Check-in [b3b7b42d]
Login

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

Overview
Comment:Fix harmless compiler warnings.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: b3b7b42d9a4a0e7e2be8b2933328a7bec2f49a81
User & Date: drh 2016-11-20 17:59:59
Context
2016-11-21
18:15
Enhance speedtest1.c so that is works on older versions of SQLite, before the introduction of the group_concat() aggregate function. check-in: 9979ba80 user: drh tags: trunk
2016-11-20
17:59
Fix harmless compiler warnings. check-in: b3b7b42d user: drh tags: trunk
12:00
Prevent a possible use-after-free bug in the query optimizer. check-in: 0a98c8d7 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/insert.c.

   782    782       regRowCount = ++pParse->nMem;
   783    783       sqlite3VdbeAddOp2(v, OP_Integer, 0, regRowCount);
   784    784     }
   785    785   
   786    786     /* If this is not a view, open the table and and all indices */
   787    787     if( !isView ){
   788    788       int nIdx;
   789         -    Index *pIdx;
   790    789       nIdx = sqlite3OpenTableAndIndices(pParse, pTab, OP_OpenWrite, 0, -1, 0,
   791    790                                         &iDataCur, &iIdxCur);
   792    791       aRegIdx = sqlite3DbMallocRawNN(db, sizeof(int)*(nIdx+1));
   793    792       if( aRegIdx==0 ){
   794    793         goto insert_cleanup;
   795    794       }
   796    795       for(i=0, pIdx=pTab->pIndex; i<nIdx; pIdx=pIdx->pNext, i++){

Changes to src/shell.c.

  2579   2579       if( f==0 ){
  2580   2580         utf8_printf(stderr, "Error: cannot open \"%s\"\n", zFile);
  2581   2581       }
  2582   2582     }
  2583   2583     return f;
  2584   2584   }
  2585   2585   
         2586  +#if !defined(SQLITE_OMIT_BUILTIN_TEST)
         2587  +#if !defined(SQLITE_OMIT_TRACE) && !defined(SQLITE_OMIT_FLOATING_POINT)
  2586   2588   /*
  2587   2589   ** A routine for handling output from sqlite3_trace().
  2588   2590   */
  2589   2591   static int sql_trace_callback(
  2590   2592     unsigned mType,
  2591   2593     void *pArg,
  2592   2594     void *pP,
................................................................................
  2599   2601       const char *z = (const char*)pX;
  2600   2602       int i = (int)strlen(z);
  2601   2603       while( i>0 && z[i-1]==';' ){ i--; }
  2602   2604       utf8_printf(f, "%.*s;\n", i, z);
  2603   2605     }
  2604   2606     return 0;
  2605   2607   }
         2608  +#endif
         2609  +#endif
  2606   2610   
  2607   2611   /*
  2608   2612   ** A no-op routine that runs with the ".breakpoint" doc-command.  This is
  2609   2613   ** a useful spot to set a debugger breakpoint.
  2610   2614   */
  2611   2615   static void test_breakpoint(void){
  2612   2616     static int nCall = 0;