diff options
Diffstat (limited to 'src/3rdparty')
-rw-r--r-- | src/3rdparty/masm/stubs/ExecutableAllocator.h | 3 | ||||
-rw-r--r-- | src/3rdparty/masm/wtf/OSAllocatorWinRT.cpp | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/3rdparty/masm/stubs/ExecutableAllocator.h b/src/3rdparty/masm/stubs/ExecutableAllocator.h index f937f93025..5f7d5678ab 100644 --- a/src/3rdparty/masm/stubs/ExecutableAllocator.h +++ b/src/3rdparty/masm/stubs/ExecutableAllocator.h @@ -114,6 +114,9 @@ struct ExecutableAllocator { #if !OS(WINRT) DWORD oldProtect; VirtualProtect(reinterpret_cast<void*>(roundAddr), size + (iaddr - roundAddr), PAGE_EXECUTE_READWRITE, &oldProtect); +#else + (void)size; // suppress unused parameter warning + (void)roundAddr; // suppress unused parameter warning #endif #else int mode = PROT_READ | PROT_EXEC; diff --git a/src/3rdparty/masm/wtf/OSAllocatorWinRT.cpp b/src/3rdparty/masm/wtf/OSAllocatorWinRT.cpp index ba251d2ecf..d684367ec6 100644 --- a/src/3rdparty/masm/wtf/OSAllocatorWinRT.cpp +++ b/src/3rdparty/masm/wtf/OSAllocatorWinRT.cpp @@ -55,7 +55,7 @@ void* OSAllocator::reserveAndCommit(size_t bytes, Usage usage, bool writable, bo return reserveUncommitted(bytes, usage, writable, executable); } -void OSAllocator::commit(void* address, size_t bytes, bool writable, bool executable) +void OSAllocator::commit(void*, size_t, bool, bool) { CRASH(); // Unimplemented } |