From 17b340b14e3ea847941b97559817fc75f005777b Mon Sep 17 00:00:00 2001 From: fengjian <445077+fengjian@users.noreply.github.com> Date: Tue, 27 Feb 2024 16:29:17 +0800 Subject: [PATCH] Fix compiler warnings --- src/library/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/library/lib.rs b/src/library/lib.rs index 224b04d..38780fd 100644 --- a/src/library/lib.rs +++ b/src/library/lib.rs @@ -324,7 +324,9 @@ impl Lib { let lib_hash = self.id(); cursor.seek(entrypoint).ok()?; + #[cfg(feature = "log")] let mut st0 = registers.st0; + while !cursor.is_eof() { let pos = cursor.pos(); @@ -352,8 +354,9 @@ impl Lib { let c = if registers.st0 { g } else { r }; eprint!(" {d}st0={z}{c}{}{z} ", registers.st0); } + + st0 = registers.st0; } - st0 = registers.st0; if !registers.acc_complexity(instr) { #[cfg(feature = "log")]