I have some imported functions in my WASM code like this
#[link(wasm_import_module = "ModuleA")]
extern "system" {
#[link_name = "name"]
fn f2158(_: u32, _: i32) -> f32;
}
#[link(wasm_import_module = "ModuleB")]
extern "system" {
#[link_name = "name"]
fn f2158(_: u32,) -> f32;
}
And the compiler gives a warning like this
warning: `f2158` redeclares `name` with a different signature
- Should this warning be fixed?
- If not, how to tell the compiler to ignore this?