diff --git a/src/misc/block.c b/src/misc/block.c index 7d6713876862918c12be8afb27d2061f6adbc367..74da567145cc2149c9d00a768ac1d3f223b576c3 100644 --- a/src/misc/block.c +++ b/src/misc/block.c @@ -405,6 +405,8 @@ block_t *block_File(int fd, bool write) if (addr != MAP_FAILED) return block_mmap_Alloc (addr, length); } +#else + (void) write; #endif /* If mmap() is not implemented by the OS _or_ the filesystem... */