suppress warning when debug is turned off

This commit is contained in:
bunnie 2024-05-28 16:54:18 +08:00
parent 21fab71558
commit bed9252614

View file

@ -362,6 +362,7 @@ impl MemoryManager {
pub fn memory_size(&self) -> usize { self.ram_size }
#[cfg(feature = "debug-swap")]
#[allow(dead_code)]
pub fn rpt_base(&self) -> usize { unsafe { MEMORY_ALLOCATIONS.as_ptr() as usize } }
#[cfg(feature = "debug-swap")]