[FreeBSD] Fix a warning with GCC.
This commit is contained in:
committed by
Matthew Parkinson
parent
fb825dde09
commit
c2780f99ed
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user