Though it may be better in the long-run to replace the malloc-like
interface with an Allocator type interface.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
(cherry picked from commit
7fcfb60170e7cd293109c0c74ac1e4cdcd31b143)
end = base + bytes;
assert(base);
chunk_base = static_cast<Chunk*>(::malloc(sizeof(Chunk) * num));
- memset(chunk_base, 0, sizeof(Chunk) * num);
+ memset(static_cast<void*>(chunk_base), 0, sizeof(Chunk) * num);
free_chunks.reserve(num);
ibv_mr* m = ibv_reg_mr(manager.pd->pd, base, bytes, IBV_ACCESS_REMOTE_WRITE | IBV_ACCESS_LOCAL_WRITE);
assert(m);