[Libreoffice-commits] core.git: compilerplugins/clang

Stephan Bergmann sbergman at redhat.com
Mon Jul 6 10:24:57 PDT 2015


 compilerplugins/clang/unusedmethodsremove.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e93b4d20d88ab70489e4daad5e8640b34d06b28f
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Jul 6 19:24:27 2015 +0200

    No MAP_POPULATE on Mac OS X
    
    Change-Id: I6a0b8bbeec94fe19b609542550f9cce783daef20

diff --git a/compilerplugins/clang/unusedmethodsremove.cxx b/compilerplugins/clang/unusedmethodsremove.cxx
index 9087733..01b71b1 100644
--- a/compilerplugins/clang/unusedmethodsremove.cxx
+++ b/compilerplugins/clang/unusedmethodsremove.cxx
@@ -59,7 +59,7 @@ UnusedMethodsRemove::UnusedMethodsRemove(InstantiationData const & data): Rewrit
     mmapFD = open(sInputFile, O_RDONLY, 0);
     assert(mmapFD != -1);
     //Execute mmap
-    mmappedData = static_cast<char*>(mmap(NULL, mmapFilesize, PROT_READ, MAP_PRIVATE | MAP_POPULATE, mmapFD, 0));
+    mmappedData = static_cast<char*>(mmap(NULL, mmapFilesize, PROT_READ, MAP_PRIVATE, mmapFD, 0));
     assert(mmappedData != NULL);
 }
 


More information about the Libreoffice-commits mailing list