aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2014-01-10 16:40:21 +0000
committerdan <dan@noemail.net>2014-01-10 16:40:21 +0000
commit9871c59a2d18e0b07ef97118aa13843f666a6bb0 (patch)
treec109452c7d73f03d5b1aa6a350365df13f0911ac /src/os_unix.c
parent1bcbc621dfbea87d52cba3988dbbf176ea041aa4 (diff)
downloadsqlite-9871c59a2d18e0b07ef97118aa13843f666a6bb0.tar.gz
sqlite-9871c59a2d18e0b07ef97118aa13843f666a6bb0.zip
Fix another harmless compiler warning in unixUnfetch().
FossilOrigin-Name: 0484549bb82ca5246488330c8d266e429ccd19b9
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 420275b3f..96cd5e619 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -4848,9 +4848,9 @@ 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){
- UNUSED_PARAMETER(iOff);
#if SQLITE_MAX_MMAP_SIZE>0
unixFile *pFd = (unixFile *)fd; /* The underlying database file */
+ UNUSED_PARAMETER(iOff);
/* 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),
@@ -4870,6 +4870,7 @@ static int unixUnfetch(sqlite3_file *fd, i64 iOff, void *p){
#else
UNUSED_PARAMETER(fd);
UNUSED_PARAMETER(p);
+ UNUSED_PARAMETER(iOff);
#endif
return SQLITE_OK;
}