/ Check-in [61a44961]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

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

Overview
Comment:Prevent a harmless unused variable warning when compiling with SQLITE_OMIT_TRACE.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 61a44961b5811c993ae8d4f820a21a0ee739fe5e88cbfe5e4190e0091912ca19
User & Date: drh 2018-01-24 12:14:43
Context
2018-01-24
13:15
Improved error message output when the btreeinfo.c extension is run in a connection that lacks sqlite_dbpage support. check-in: 461b0b81 user: drh tags: trunk
12:14
Prevent a harmless unused variable warning when compiling with SQLITE_OMIT_TRACE. check-in: 61a44961 user: drh tags: trunk
11:29
Fix a formatting issue in sqlite3_prepare_v3() documentation. No changes to code. check-in: 9e6066de user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbe.c.

  7103   7103   ** first time they are evaluated for this run.
  7104   7104   **
  7105   7105   ** If P3 is not zero, then it is an address to jump to if an SQLITE_CORRUPT
  7106   7106   ** error is encountered.
  7107   7107   */
  7108   7108   case OP_Trace:
  7109   7109   case OP_Init: {          /* jump */
  7110         -  char *zTrace;
  7111   7110     int i;
         7111  +#ifndef SQLITE_OMIT_TRACE
         7112  +  char *zTrace;
         7113  +#endif
  7112   7114   
  7113   7115     /* If the P4 argument is not NULL, then it must be an SQL comment string.
  7114   7116     ** The "--" string is broken up to prevent false-positives with srcck1.c.
  7115   7117     **
  7116   7118     ** This assert() provides evidence for:
  7117   7119     ** EVIDENCE-OF: R-50676-09860 The callback can compute the same text that
  7118   7120     ** would have been returned by the legacy sqlite3_trace() interface by