Skip to content

Commit

Permalink
Fix various warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Oct 30, 2020
1 parent 2387ec0 commit ff3a6c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/memory.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
use wasmer::{
imports, wat2wasm, Extern, Function, Instance, Memory, MemoryType, Module, NativeFunc, Pages,
Store, Table, TableType, Type, Value,
};
use wasmer::{imports, wat2wasm, Instance, Module, NativeFunc, Pages, Store};
use wasmer_compiler_cranelift::Cranelift;
use wasmer_engine_jit::JIT;

Expand Down Expand Up @@ -64,6 +61,7 @@ fn main() -> anyhow::Result<()> {
let page_size = 0x1_0000;
let result = get_at.call(page_size * 3 - 4)?;
memory.grow(1025)?;
assert_eq!(result, 123456);
assert_eq!(memory.size(), Pages::from(1028));
set_at.call(page_size * 1027 - 4, 123456)?;
let result = get_at.call(page_size * 1027 - 4)?;
Expand Down
1 change: 1 addition & 0 deletions tests/lib/engine-dummy/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use wasmer_engine::{Artifact, DeserializeError, Engine, EngineId, Tunables};
use wasmer_types::FunctionType;
use wasmer_vm::{SignatureRegistry, VMContext, VMFunctionBody, VMSharedSignatureIndex};

#[allow(dead_code)]
extern "C" fn dummy_trampoline(
_context: *mut VMContext,
_body: *const VMFunctionBody,
Expand Down

0 comments on commit ff3a6c8

Please sign in to comment.