Skip to content

Commit 29e4dd5

Browse files
remove global context
1 parent 70dbd1b commit 29e4dd5

File tree

4 files changed

+125
-129
lines changed

4 files changed

+125
-129
lines changed

core/iwasm/libraries/wasi-nn/include/wasi_nn.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
#else
2222
#define WASI_NN_IMPORT(name) \
2323
__attribute__((import_module("wasi_nn"), import_name(name)))
24-
#warning \
25-
"You are using \"wasi_nn\", which is a legacy WAMR-specific ABI. It's deprecated and will likely be removed in future versions of WAMR. Please use \"wasi_ephemeral_nn\" instead. (For a WASM module, use the wasi_ephemeral_nn.h header instead. For the runtime configurations, enable WASM_ENABLE_WASI_EPHEMERAL_NN/WAMR_BUILD_WASI_EPHEMERAL_NN.)"
24+
#warning You are using "wasi_nn", which is a legacy WAMR-specific ABI. It's deperecated and will likely be removed in future versions of WAMR. Please use "wasi_ephemeral_nn" instead. (For a WASM module, use the wasi_ephemeral_nn.h header instead. For the runtime configurations, enable WASM_ENABLE_WASI_EPHEMERAL_NN/WAMR_BUILD_WASI_EPHEMERAL_NN.)
2625
#endif
2726

2827
/**

core/iwasm/libraries/wasi-nn/include/wasi_nn_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ extern "C" {
2727
#define WASI_NN_TYPE_NAME(name) WASI_NN_NAME(type_##name)
2828
#define WASI_NN_ENCODING_NAME(name) WASI_NN_NAME(encoding_##name)
2929
#define WASI_NN_TARGET_NAME(name) WASI_NN_NAME(target_##name)
30-
#define WASI_NN_ERROR_TYPE WASI_NN_NAME(error)
30+
#define WASI_NN_ERROR_TYPE WASI_NN_NAME(error);
3131
#endif
3232

3333
/**

core/iwasm/libraries/wasi-nn/src/wasi_nn.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
#include "wasm_export.h"
2222

2323
#if WASM_ENABLE_WASI_EPHEMERAL_NN == 0
24-
#warning \
25-
"You are using \"wasi_nn\", which is a legacy WAMR-specific ABI. It's deprecated and will likely be removed in future versions of WAMR. Please use \"wasi_ephemeral_nn\" instead. (For a WASM module, use the wasi_ephemeral_nn.h header instead. For the runtime configurations, enable WASM_ENABLE_WASI_EPHEMERAL_NN/WAMR_BUILD_WASI_EPHEMERAL_NN.)"
24+
#warning You are using "wasi_nn", which is a legacy WAMR-specific ABI. It's deperecated and will likely be removed in future versions of WAMR. Please use "wasi_ephemeral_nn" instead. (For a WASM module, use the wasi_ephemeral_nn.h header instead. For the runtime configurations, enable WASM_ENABLE_WASI_EPHEMERAL_NN/WAMR_BUILD_WASI_EPHEMERAL_NN.)
2625
#endif
2726

2827
#define HASHMAP_INITIAL_SIZE 20

0 commit comments

Comments
 (0)