aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2014-01-09 13:39:07 +0000
committerdrh <drh@noemail.net>2014-01-09 13:39:07 +0000
commit1bcbc621dfbea87d52cba3988dbbf176ea041aa4 (patch)
treec6cda2cf1e68b2919ce05e121be935239a26d915 /src/os_unix.c
parentb66e21fda587a78079413d3588da69155b538141 (diff)
downloadsqlite-1bcbc621dfbea87d52cba3988dbbf176ea041aa4.tar.gz
sqlite-1bcbc621dfbea87d52cba3988dbbf176ea041aa4.zip
Fix harmless compiler warning in unixUnfetch().
FossilOrigin-Name: 618f248f4ea9fb0b6ff019a4c2cd72857389301f
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 4b76d4fec..420275b3f 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -4848,10 +4848,10 @@ static int unixFetch(sqlite3_file *fd, i64 iOff, int nAmt, void **pp){
** may now be invalid and should be unmapped.
*/
static int unixUnfetch(sqlite3_file *fd, i64 iOff, void *p){
- unixFile *pFd = (unixFile *)fd; /* The underlying database file */
UNUSED_PARAMETER(iOff);
-
#if SQLITE_MAX_MMAP_SIZE>0
+ unixFile *pFd = (unixFile *)fd; /* The underlying database file */
+
/* If p==0 (unmap the entire file) then there must be no outstanding
** xFetch references. Or, if p!=0 (meaning it is an xFetch reference),
** then there must be at least one outstanding. */
@@ -4867,6 +4867,9 @@ static int unixUnfetch(sqlite3_file *fd, i64 iOff, void *p){
}
assert( pFd->nFetchOut>=0 );
+#else
+ UNUSED_PARAMETER(fd);
+ UNUSED_PARAMETER(p);
#endif
return SQLITE_OK;
}