mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-08 21:58:20 +00:00
chore(c-api) Remove a warning by commenting an unreachable code.
This commit is contained in:
2
lib/c-api/src/wasm_c_api/externals/table.rs
vendored
2
lib/c-api/src/wasm_c_api/externals/table.rs
vendored
@@ -16,9 +16,11 @@ pub unsafe extern "C" fn wasm_table_new(
|
|||||||
) -> Option<Box<wasm_table_t>> {
|
) -> Option<Box<wasm_table_t>> {
|
||||||
let table_type = table_type.inner().table_type.clone();
|
let table_type = table_type.inner().table_type.clone();
|
||||||
let init_val = todo!("get val from init somehow");
|
let init_val = todo!("get val from init somehow");
|
||||||
|
/*
|
||||||
let table = c_try!(Table::new(&store.inner, table_type, init_val));
|
let table = c_try!(Table::new(&store.inner, table_type, init_val));
|
||||||
|
|
||||||
Some(Box::new(wasm_table_t { inner: table }))
|
Some(Box::new(wasm_table_t { inner: table }))
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
|
|||||||
Reference in New Issue
Block a user