/ Check-in [39866c0e]
Login

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

Overview
Comment:Fix an unused variable warning with SQLITE_OMIT_WAL.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 39866c0ede5d6ef4dd4fd57c797f0e86a2d0dc5d
User & Date: mistachkin 2012-09-13 15:26:44
References
2012-09-18
13:20
Update the vdbe-compress.tcl script so that it accepts variable declarations inside of #ifdef...#endif. This enhancement is needed due to the change of check-in [39866c0ede5d6ef4]. check-in: e7db056a user: drh tags: trunk
Context
2012-09-13
16:12
Fix WAL capability checking in one of the test files. check-in: 0ebe7cc5 user: mistachkin tags: trunk
15:26
Fix an unused variable warning with SQLITE_OMIT_WAL. check-in: 39866c0e user: mistachkin tags: trunk
15:24
Improved reporting of filename translation errors in the Windows VFS. check-in: eb0f1c29 user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbe.c.

  5491   5491   ** Write a string containing the final journal-mode to register P2.
  5492   5492   */
  5493   5493   case OP_JournalMode: {    /* out2-prerelease */
  5494   5494     Btree *pBt;                     /* Btree to change journal mode of */
  5495   5495     Pager *pPager;                  /* Pager associated with pBt */
  5496   5496     int eNew;                       /* New journal mode */
  5497   5497     int eOld;                       /* The old journal mode */
         5498  +#ifndef SQLITE_OMIT_WAL
  5498   5499     const char *zFilename;          /* Name of database file for pPager */
         5500  +#endif
  5499   5501   
  5500   5502     eNew = pOp->p3;
  5501   5503     assert( eNew==PAGER_JOURNALMODE_DELETE 
  5502   5504          || eNew==PAGER_JOURNALMODE_TRUNCATE 
  5503   5505          || eNew==PAGER_JOURNALMODE_PERSIST 
  5504   5506          || eNew==PAGER_JOURNALMODE_OFF
  5505   5507          || eNew==PAGER_JOURNALMODE_MEMORY