X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2Fportability%2FSysMman.cpp;h=af76d8bb25398e898bc1578c0d0c0bb5100a5f24;hb=70230b7a106820807c8d74fcf3d21ebab3442fbb;hp=a360355e51b811bada906da1eb0a558118468509;hpb=d496cae9862596f16803c9a7f9d820ab6a6ae2ae;p=folly.git diff --git a/folly/portability/SysMman.cpp b/folly/portability/SysMman.cpp old mode 100755 new mode 100644 index a360355e..af76d8bb --- a/folly/portability/SysMman.cpp +++ b/folly/portability/SysMman.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2016 Facebook, Inc. + * Copyright 2017 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,9 @@ #include #ifdef _WIN32 + #include + #include #include @@ -56,7 +58,7 @@ static size_t alignToAllocationGranularity(size_t s) { } extern "C" { -int madvise(const void* addr, size_t len, int advise) { +int madvise(const void* /* addr */, size_t /* len */, int /* advise */) { // We do nothing at all. // Could probably implement dontneed via VirtualAlloc // with the MEM_RESET and MEM_RESET_UNDO flags. @@ -213,4 +215,5 @@ int munmap(void* addr, size_t length) { return 0; } } + #endif