Skip to content
Snippets Groups Projects
Commit ee4e9f75 authored by Micah Elizabeth Scott's avatar Micah Elizabeth Scott
Browse files

hashx: Avoid unused arg warning on OpenBSD and NetBSD

This path in hashx_vm_alloc_huge() for OpenBSD and NetBSD always
fails without checking its parameter. Fix the warning.
parent 9cac0a85
No related branches found
No related tags found
1 merge request!751maint-0.4.8: NetBSD portability fixes for HashX and Equi-X
......@@ -107,6 +107,7 @@ void* hashx_vm_alloc_huge(size_t bytes) {
mem = mmap(NULL, bytes, PAGE_READWRITE, MAP_PRIVATE | MAP_ANONYMOUS
| MAP_ALIGNED_SUPER, -1, 0);
#elif defined(__OpenBSD__) || defined(__NetBSD__)
(void)bytes;
mem = MAP_FAILED; // OpenBSD and NetBSD do not support huge pages
#else
mem = mmap(NULL, bytes, PAGE_READWRITE, MAP_PRIVATE | MAP_ANONYMOUS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment