diff --git a/src/runtime/backing.rs b/src/runtime/backing.rs index fa612f3ee..6c2780385 100644 --- a/src/runtime/backing.rs +++ b/src/runtime/backing.rs @@ -66,7 +66,7 @@ impl LocalBacking { ); let offset = init.offset; let mem: &mut LinearMemory = &mut memories[init.memory_index.index()]; - let end_of_init = offset + init.data.len(); + // let end_of_init = offset + init.data.len(); // if end_of_init > mem.current_size() { // let grow_pages = (end_of_init / LinearMemory::PAGE_SIZE as usize) + 1; // mem.grow(grow_pages as u32) @@ -95,7 +95,7 @@ impl LocalBacking { } // TODO: Actually finish this - fn finalize_tables(module: &Module, tables: &mut [TableBacking]) -> Box<[vm::LocalTable]> { + fn finalize_tables(_module: &Module, tables: &mut [TableBacking]) -> Box<[vm::LocalTable]> { tables .iter_mut() .map(|table| table.into_vm_table()) diff --git a/src/runtime/instance.rs b/src/runtime/instance.rs index 822f0e22c..ef31b1761 100644 --- a/src/runtime/instance.rs +++ b/src/runtime/instance.rs @@ -5,7 +5,7 @@ use crate::runtime::{ module::{Export, Module}, sig_registry::SigRegistry, table::TableBacking, - types::{FuncIndex, FuncSig, Memory, Table, Type, Val}, + types::{FuncSig, Memory, Table, Type, Val}, vm, }; use hashbrown::HashMap; diff --git a/src/runtime/memory.rs b/src/runtime/memory.rs index 63ec4c577..fd6f2ac71 100644 --- a/src/runtime/memory.rs +++ b/src/runtime/memory.rs @@ -145,7 +145,6 @@ impl LinearMemory { return None; } - let prev_bytes = (prev_pages * Self::PAGE_SIZE) as usize; let new_bytes = (new_pages * Self::PAGE_SIZE) as usize; if new_bytes > self.mmap.len() - self.offset_guard_size {