[FreeBSD] Fix a warning with GCC.

This commit is contained in:
David Chisnall
2019-07-01 10:46:52 +01:00
committed by Matthew Parkinson
parent fb825dde09
commit c2780f99ed

View File

@@ -38,7 +38,14 @@ namespace snmalloc
assert(
bits::is_aligned_block<OS_PAGE_SIZE>(p, size) || (zero_mem == NoZero));
if constexpr (zero_mem == YesZero)
{
zero(p, size);
}
else
{
UNUSED(size);
UNUSED(p);
}
}
/// OS specific function for zeroing memory