/ Check-in [4a4952d3]
Login

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

Overview
Comment:Avoid using a "return void_function();" statement in void function sqlite3WalSnapshotUnlock(). It provokes a warning from some compilers.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:4a4952d38e8177ed8d59aaa575410bebf76787dd6d801fdbdb809d4f8c670da0
User & Date: dan 2019-02-11 11:04:17
Original Comment: Avoid using non-ANSI return statement in void function sqlite3WalSnapshotUnlock().
Context
2019-02-11
11:34
Build and test fixes for SQLITE_OMIT_WINDOWFUNC builds. check-in: 8824115a user: dan tags: trunk
11:04
Avoid using a "return void_function();" statement in void function sqlite3WalSnapshotUnlock(). It provokes a warning from some compilers. check-in: 4a4952d3 user: dan tags: trunk
01:58
Add an assert() in an attempt to repro an ASAN warning from OSSFuzz. check-in: 7b412224 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/pager.c.

  7693   7693   
  7694   7694   /*
  7695   7695   ** Release a lock obtained by an earlier successful call to
  7696   7696   ** sqlite3PagerSnapshotCheck().
  7697   7697   */
  7698   7698   void sqlite3PagerSnapshotUnlock(Pager *pPager){
  7699   7699     assert( pPager->pWal );
  7700         -  return sqlite3WalSnapshotUnlock(pPager->pWal);
         7700  +  sqlite3WalSnapshotUnlock(pPager->pWal);
  7701   7701   }
  7702   7702   
  7703   7703   #endif /* SQLITE_ENABLE_SNAPSHOT */
  7704   7704   #endif /* !SQLITE_OMIT_WAL */
  7705   7705   
  7706   7706   #ifdef SQLITE_ENABLE_ZIPVFS
  7707   7707   /*