Skip to content

Commit

Permalink
Appease unused warning on min_uint64 (bytecodealliance#2277)
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Jun 9, 2023
1 parent 401d65f commit 22de9ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/iwasm/libraries/libc-wasi/libc_wasi_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,13 @@ typedef struct WASIContext *wasi_ctx_t;
wasi_ctx_t
wasm_runtime_get_wasi_ctx(wasm_module_inst_t module_inst);

#if WASM_ENABLE_THREAD_MGR != 0
static inline uint64_t
min_uint64(uint64_t a, uint64_t b)
{
return a > b ? b : a;
}
#endif

static inline uint32_t
min_uint32(uint32_t a, uint32_t b)
Expand Down

0 comments on commit 22de9ab

Please sign in to comment.