Silence a warning in file-mmap-posix.c.
authorAlex Rønne Petersen <alexrp@xamarin.com>
Fri, 20 Jun 2014 02:11:48 +0000 (04:11 +0200)
committerAlex Rønne Petersen <alexrp@xamarin.com>
Fri, 20 Jun 2014 02:12:11 +0000 (04:12 +0200)
mono/metadata/file-mmap-posix.c

index 4b7fa7a8bfe50626cd1ad6a63b8fd7f76314085e..2fc7fb5ed394bf5965995f232554ffd35605fb00 100644 (file)
@@ -340,7 +340,7 @@ open_memory_map (MonoString *mapName, int mode, gint64 *capacity, int access, in
                }
 
                unlink (file_name);
-               ftruncate (fd, (off_t)*capacity);
+               int unused G_GNUC_UNUSED = ftruncate (fd, (off_t)*capacity);
 
                handle = g_new0 (MmapHandle, 1);
                handle->ref_count = 1;