Fix unused variables in generated code

Also deny all warnings in tests to prevent this creeping back in.

Closes #141
This commit is contained in:
Alex Crichton
2018-04-19 13:16:59 -07:00
parent 574e54a89d
commit 792a8e132e
5 changed files with 8 additions and 9 deletions

View File

@ -129,7 +129,7 @@ impl ToTokens for ast::Struct {
impl ::wasm_bindgen::convert::FromWasmAbi for #name {
type Abi = u32;
unsafe fn from_abi(js: u32, extra: &mut ::wasm_bindgen::convert::Stack)
unsafe fn from_abi(js: u32, _extra: &mut ::wasm_bindgen::convert::Stack)
-> Self
{
let ptr = js as *mut ::wasm_bindgen::__rt::WasmRefCell<#name>;