projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e437882
)
Silence a warning in file-mmap-posix.c.
author
Alex Rønne Petersen
<alexrp@xamarin.com>
Fri, 20 Jun 2014 02:11:48 +0000
(
04:11
+0200)
committer
Alex Rønne Petersen
<alexrp@xamarin.com>
Fri, 20 Jun 2014 02:12:11 +0000
(
04:12
+0200)
mono/metadata/file-mmap-posix.c
patch
|
blob
|
history
diff --git
a/mono/metadata/file-mmap-posix.c
b/mono/metadata/file-mmap-posix.c
index 4b7fa7a8bfe50626cd1ad6a63b8fd7f76314085e..2fc7fb5ed394bf5965995f232554ffd35605fb00 100644
(file)
--- a/
mono/metadata/file-mmap-posix.c
+++ b/
mono/metadata/file-mmap-posix.c
@@
-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;