/ Check-in [0484549b]
Login

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

Overview
Comment:Fix another harmless compiler warning in unixUnfetch().
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 0484549bb82ca5246488330c8d266e429ccd19b9
User & Date: dan 2014-01-10 16:40:21
Context
2014-01-10
20:38
Fix CREATE TABLE ... AS so that it works with column names that are empty strings. check-in: 632045f2 user: drh tags: trunk
16:40
Fix another harmless compiler warning in unixUnfetch(). check-in: 0484549b user: dan tags: trunk
2014-01-09
13:39
Fix harmless compiler warning in unixUnfetch(). check-in: 618f248f user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_unix.c.

  4844   4844   ** argument that was passed to the unixFetch() invocation. 
  4845   4845   **
  4846   4846   ** Or, if the third argument is NULL, then this function is being called 
  4847   4847   ** to inform the VFS layer that, according to POSIX, any existing mapping 
  4848   4848   ** may now be invalid and should be unmapped.
  4849   4849   */
  4850   4850   static int unixUnfetch(sqlite3_file *fd, i64 iOff, void *p){
  4851         -  UNUSED_PARAMETER(iOff);
  4852   4851   #if SQLITE_MAX_MMAP_SIZE>0
  4853   4852     unixFile *pFd = (unixFile *)fd;   /* The underlying database file */
         4853  +  UNUSED_PARAMETER(iOff);
  4854   4854   
  4855   4855     /* If p==0 (unmap the entire file) then there must be no outstanding 
  4856   4856     ** xFetch references. Or, if p!=0 (meaning it is an xFetch reference),
  4857   4857     ** then there must be at least one outstanding.  */
  4858   4858     assert( (p==0)==(pFd->nFetchOut==0) );
  4859   4859   
  4860   4860     /* If p!=0, it must match the iOff value. */
................................................................................
  4866   4866       unixUnmapfile(pFd);
  4867   4867     }
  4868   4868   
  4869   4869     assert( pFd->nFetchOut>=0 );
  4870   4870   #else
  4871   4871     UNUSED_PARAMETER(fd);
  4872   4872     UNUSED_PARAMETER(p);
         4873  +  UNUSED_PARAMETER(iOff);
  4873   4874   #endif
  4874   4875     return SQLITE_OK;
  4875   4876   }
  4876   4877   
  4877   4878   /*
  4878   4879   ** Here ends the implementation of all sqlite3_file methods.
  4879   4880   **