[vlc-commits] block: mute a warning

Rémi Denis-Courmont git at videolan.org
Sun Apr 14 09:05:27 CEST 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Apr 14 09:29:03 2019 +0300| [235b84825ad5e86472bb1ebc828a8f3615d85282] | committer: Rémi Denis-Courmont

block: mute a warning

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=235b84825ad5e86472bb1ebc828a8f3615d85282
---

 src/misc/block.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/misc/block.c b/src/misc/block.c
index 7d67138768..74da567145 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... */



More information about the vlc-commits mailing list