diff --git a/loader/src/minielf.rs b/loader/src/minielf.rs index 3a1e9ec31..e54607d4f 100644 --- a/loader/src/minielf.rs +++ b/loader/src/minielf.rs @@ -593,6 +593,7 @@ pub fn pt_walk(root: usize, va: usize) -> Option { } #[cfg(all(any(feature = "debug-print", feature = "swap"), not(feature = "atsama5d27")))] +#[allow(dead_code)] pub fn pt_walk_swap(root: usize, va: usize, swap_root: usize) -> Option { let l1_pt = unsafe { &mut (*((root << 12) as *mut PageTable)) }; let l1_entry_va = (l1_pt.entries[(va & 0xFFC0_0000) >> 22] >> 10) << 12;