From 3437b94807b81b703297e005f7c7d61c392400e0 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 21 Feb 2023 23:38:40 +0800 Subject: [PATCH] clean up a warning --- loader/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/loader/src/main.rs b/loader/src/main.rs index 6b4920135..3a664c37a 100644 --- a/loader/src/main.rs +++ b/loader/src/main.rs @@ -1743,6 +1743,7 @@ fn check_resume(cfg: &mut BootConfig) -> (bool, bool, u32) { (clean, was_forced_suspend, pid) } +#[cfg(not(feature="simulation-only"))] fn clear_ram(cfg: &mut BootConfig) { // clear RAM on a cold boot. // RAM is persistent and battery-backed. This means secret material could potentially