@@ -210,7 +210,7 @@ impl ToTokens for ast::Struct {
210
210
}
211
211
212
212
#[ cfg( not( all( target_arch = "wasm32" , not( target_os = "emscripten" ) ) ) ) ]
213
- unsafe fn #new_fn( ptr : u32 ) -> u32 {
213
+ unsafe fn #new_fn( _ : u32 ) -> u32 {
214
214
panic!( "cannot convert to JsValue outside of the wasm target" )
215
215
}
216
216
@@ -719,7 +719,7 @@ impl ToTokens for ast::ImportType {
719
719
fn #instanceof_shim( val: u32 ) -> u32 ;
720
720
}
721
721
#[ cfg( not( all( target_arch = "wasm32" , not( target_os = "emscripten" ) ) ) ) ]
722
- unsafe fn #instanceof_shim( val : u32 ) -> u32 {
722
+ unsafe fn #instanceof_shim( _ : u32 ) -> u32 {
723
723
panic!( "cannot check instanceof on non-wasm targets" ) ;
724
724
}
725
725
unsafe {
@@ -997,6 +997,7 @@ impl TryToTokens for ast::ImportFunction {
997
997
let attrs = & self . function . rust_attrs ;
998
998
let arguments = & arguments;
999
999
let abi_arguments = & abi_arguments;
1000
+ let abi_argument_names = & abi_argument_names;
1000
1001
1001
1002
let doc_comment = match & self . doc_comment {
1002
1003
None => "" ,
@@ -1032,6 +1033,7 @@ impl TryToTokens for ast::ImportFunction {
1032
1033
}
1033
1034
#[ cfg( not( all( target_arch = "wasm32" , not( target_os = "emscripten" ) ) ) ) ]
1034
1035
unsafe fn #import_name( #( #abi_arguments) , * ) -> #abi_ret {
1036
+ drop( ( #( #abi_argument_names) , * ) ) ;
1035
1037
panic!( "cannot call wasm-bindgen imported functions on \
1036
1038
non-wasm targets") ;
1037
1039
}
0 commit comments