/ Check-in [aad3ff257a]
Login

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

Overview
Comment:Fix a compiler warning when building with tclsqlite3.c and without SQLITE_ENABLE_DBSTAT_VTAB.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: aad3ff257a156b572334b64aa57643ff3ea231a4
User & Date: drh 2015-05-12 14:22:05
Context
2015-05-12
19:10
Attempt to get DBSTAT to compile without warnings across all build configurations. check-in: c3cbe3b06e user: drh tags: trunk
14:22
Fix a compiler warning when building with tclsqlite3.c and without SQLITE_ENABLE_DBSTAT_VTAB. check-in: aad3ff257a user: drh tags: trunk
13:32
Improvements to documentation of the sqlite3_column_xxxxx() interfaces. No code changes. check-in: f1aa951a33 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/dbstat.c.

   642    642       0,                            /* xCommit */
   643    643       0,                            /* xRollback */
   644    644       0,                            /* xFindMethod */
   645    645       0,                            /* xRename */
   646    646     };
   647    647     return sqlite3_create_module(db, "dbstat", &dbstat_module, 0);
   648    648   }
   649         -#else  /* Without the proper defines, sqlite3DbstatRegister is a no-op */
          649  +#elif defined(SQLITE_ENABLE_DBSTAT_VTAB)
   650    650   int sqlite3DbstatRegister(sqlite3 *db){ return SQLITE_OK; }
   651    651   #endif /* SQLITE_ENABLE_DBSTAT_VTAB */