From 9992d29b408e939a9739779d1dfdeb20e99beec0 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 9 Apr 2024 00:06:18 +0800 Subject: [PATCH] chore: cleanup warning in non-swap mode --- loader/src/bootconfig.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/loader/src/bootconfig.rs b/loader/src/bootconfig.rs index 7c6141ccc..d9ad65371 100644 --- a/loader/src/bootconfig.rs +++ b/loader/src/bootconfig.rs @@ -175,6 +175,7 @@ impl BootConfig { } } + #[cfg(feature = "swap")] fn alloc_swap(&mut self) -> *mut usize { self.init_size += PAGE_SIZE; let pg = self.get_top();