reduce warnings when debug is turned off

This commit is contained in:
bunnie 2024-05-28 20:27:13 +08:00
parent 3cf79dbbd4
commit ec9a2be9cc

View file

@ -366,6 +366,7 @@ impl MemoryManager {
pub fn rpt_base(&self) -> usize { unsafe { MEMORY_ALLOCATIONS.as_ptr() as usize } }
#[cfg(feature = "debug-swap")]
#[allow(dead_code)]
/// This function is "improper" in that it returns a bogus value if the memory allocations are
/// out of range, but its purpose is only for debugging. This is not suitable for use in any
/// other context.