Appease GCC strict prototypes warning (#3775)
This commit is contained in:
@ -159,7 +159,7 @@ wasm_runtime_memory_init(mem_alloc_type_t mem_alloc_type,
|
||||
}
|
||||
|
||||
void
|
||||
wasm_runtime_memory_destroy()
|
||||
wasm_runtime_memory_destroy(void)
|
||||
{
|
||||
if (memory_mode == MEMORY_MODE_POOL) {
|
||||
#if BH_ENABLE_GC_VERIFY == 0
|
||||
@ -176,7 +176,7 @@ wasm_runtime_memory_destroy()
|
||||
}
|
||||
|
||||
unsigned
|
||||
wasm_runtime_memory_pool_size()
|
||||
wasm_runtime_memory_pool_size(void)
|
||||
{
|
||||
if (memory_mode == MEMORY_MODE_POOL)
|
||||
return global_pool_size;
|
||||
|
||||
@ -46,10 +46,10 @@ wasm_runtime_memory_init(mem_alloc_type_t mem_alloc_type,
|
||||
const MemAllocOption *alloc_option);
|
||||
|
||||
void
|
||||
wasm_runtime_memory_destroy();
|
||||
wasm_runtime_memory_destroy(void);
|
||||
|
||||
unsigned
|
||||
wasm_runtime_memory_pool_size();
|
||||
wasm_runtime_memory_pool_size(void);
|
||||
|
||||
void
|
||||
wasm_runtime_set_mem_bound_check_bytes(WASMMemoryInstance *memory,
|
||||
|
||||
@ -469,7 +469,7 @@ wasi_context_dtor(WASMModuleInstanceCommon *inst, void *ctx)
|
||||
|
||||
#if WASM_ENABLE_QUICK_AOT_ENTRY != 0
|
||||
static bool
|
||||
quick_aot_entry_init();
|
||||
quick_aot_entry_init(void);
|
||||
#endif
|
||||
|
||||
bool
|
||||
@ -1461,7 +1461,7 @@ quick_aot_entry_cmp(const void *quick_aot_entry1, const void *quick_aot_entry2)
|
||||
}
|
||||
|
||||
static bool
|
||||
quick_aot_entry_init()
|
||||
quick_aot_entry_init(void)
|
||||
{
|
||||
qsort(quick_aot_entries, sizeof(quick_aot_entries) / sizeof(QuickAOTEntry),
|
||||
sizeof(QuickAOTEntry), quick_aot_entry_cmp);
|
||||
|
||||
@ -100,10 +100,10 @@ wasm_native_inherit_contexts(struct WASMModuleInstanceCommon *child,
|
||||
#endif /* WASM_ENABLE_MODULE_INST_CONTEXT */
|
||||
|
||||
bool
|
||||
wasm_native_init();
|
||||
wasm_native_init(void);
|
||||
|
||||
void
|
||||
wasm_native_destroy();
|
||||
wasm_native_destroy(void);
|
||||
|
||||
#if WASM_ENABLE_QUICK_AOT_ENTRY != 0
|
||||
void *
|
||||
|
||||
@ -86,7 +86,7 @@ static bh_list registered_module_list_head;
|
||||
static bh_list *const registered_module_list = ®istered_module_list_head;
|
||||
static korp_mutex registered_module_list_lock;
|
||||
static void
|
||||
wasm_runtime_destroy_registered_module_list();
|
||||
wasm_runtime_destroy_registered_module_list(void);
|
||||
#endif /* WASM_ENABLE_MULTI_MODULE */
|
||||
|
||||
#define E_TYPE_XIP 4
|
||||
@ -97,11 +97,11 @@ val_type_to_val_kind(uint8 value_type);
|
||||
#if WASM_ENABLE_GC == 0 && WASM_ENABLE_REF_TYPES != 0
|
||||
/* Initialize externref hashmap */
|
||||
static bool
|
||||
wasm_externref_map_init();
|
||||
wasm_externref_map_init(void);
|
||||
|
||||
/* Destroy externref hashmap */
|
||||
static void
|
||||
wasm_externref_map_destroy();
|
||||
wasm_externref_map_destroy(void);
|
||||
#endif /* end of WASM_ENABLE_GC == 0 && WASM_ENABLE_REF_TYPES != 0 */
|
||||
|
||||
static void
|
||||
@ -438,7 +438,7 @@ wasm_runtime_get_exec_env_tls()
|
||||
#endif /* end of OS_ENABLE_HW_BOUND_CHECK */
|
||||
|
||||
static bool
|
||||
wasm_runtime_env_init()
|
||||
wasm_runtime_env_init(void)
|
||||
{
|
||||
if (bh_platform_init() != 0)
|
||||
return false;
|
||||
@ -584,7 +584,7 @@ static korp_mutex runtime_lock = OS_THREAD_MUTEX_INITIALIZER;
|
||||
static int32 runtime_ref_count = 0;
|
||||
|
||||
static bool
|
||||
wasm_runtime_init_internal()
|
||||
wasm_runtime_init_internal(void)
|
||||
{
|
||||
if (!wasm_runtime_memory_init(Alloc_With_System_Allocator, NULL))
|
||||
return false;
|
||||
@ -622,7 +622,7 @@ wasm_runtime_init()
|
||||
}
|
||||
|
||||
static void
|
||||
wasm_runtime_destroy_internal()
|
||||
wasm_runtime_destroy_internal(void)
|
||||
{
|
||||
#if WASM_ENABLE_GC == 0 && WASM_ENABLE_REF_TYPES != 0
|
||||
wasm_externref_map_destroy();
|
||||
@ -4747,7 +4747,7 @@ fail:
|
||||
|| defined(BUILD_TARGET_RISCV32_ILP32D) \
|
||||
|| defined(BUILD_TARGET_RISCV32_ILP32F) \
|
||||
|| defined(BUILD_TARGET_RISCV32_ILP32) || defined(BUILD_TARGET_ARC)
|
||||
typedef void (*GenericFunctionPointer)();
|
||||
typedef void (*GenericFunctionPointer)(void);
|
||||
void
|
||||
invokeNative(GenericFunctionPointer f, uint32 *args, uint32 n_stacks);
|
||||
|
||||
@ -5312,7 +5312,7 @@ fail:
|
||||
#if defined(BUILD_TARGET_X86_32) || defined(BUILD_TARGET_ARM) \
|
||||
|| defined(BUILD_TARGET_THUMB) || defined(BUILD_TARGET_MIPS) \
|
||||
|| defined(BUILD_TARGET_XTENSA)
|
||||
typedef void (*GenericFunctionPointer)();
|
||||
typedef void (*GenericFunctionPointer)(void);
|
||||
void
|
||||
invokeNative(GenericFunctionPointer f, uint32 *args, uint32 sz);
|
||||
|
||||
@ -5597,7 +5597,7 @@ typedef uint32x4_t __m128i;
|
||||
|
||||
#endif /* end of WASM_ENABLE_SIMD != 0 */
|
||||
|
||||
typedef void (*GenericFunctionPointer)();
|
||||
typedef void (*GenericFunctionPointer)(void);
|
||||
void
|
||||
invokeNative(GenericFunctionPointer f, uint64 *args, uint64 n_stacks);
|
||||
|
||||
|
||||
@ -852,10 +852,10 @@ wasm_runtime_set_module_reader(const module_reader reader,
|
||||
const module_destroyer destroyer);
|
||||
|
||||
module_reader
|
||||
wasm_runtime_get_module_reader();
|
||||
wasm_runtime_get_module_reader(void);
|
||||
|
||||
module_destroyer
|
||||
wasm_runtime_get_module_destroyer();
|
||||
wasm_runtime_get_module_destroyer(void);
|
||||
|
||||
bool
|
||||
wasm_runtime_register_module_internal(const char *module_name,
|
||||
@ -881,7 +881,7 @@ bool
|
||||
wasm_runtime_is_loading_module(const char *module_name);
|
||||
|
||||
void
|
||||
wasm_runtime_destroy_loading_module_list();
|
||||
wasm_runtime_destroy_loading_module_list(void);
|
||||
|
||||
WASMModuleCommon *
|
||||
wasm_runtime_search_sub_module(const WASMModuleCommon *parent_module,
|
||||
@ -1168,7 +1168,7 @@ wasm_runtime_quick_invoke_c_api_native(WASMModuleInstanceCommon *module_inst,
|
||||
uint32 result_count);
|
||||
|
||||
void
|
||||
wasm_runtime_show_app_heap_corrupted_prompt();
|
||||
wasm_runtime_show_app_heap_corrupted_prompt(void);
|
||||
|
||||
#if WASM_ENABLE_LOAD_CUSTOM_SECTION != 0
|
||||
void
|
||||
|
||||
@ -17,10 +17,10 @@ extern "C" {
|
||||
extern korp_mutex g_shared_memory_lock;
|
||||
|
||||
bool
|
||||
wasm_shared_memory_init();
|
||||
wasm_shared_memory_init(void);
|
||||
|
||||
void
|
||||
wasm_shared_memory_destroy();
|
||||
wasm_shared_memory_destroy(void);
|
||||
|
||||
uint16
|
||||
shared_memory_inc_reference(WASMMemoryInstance *memory);
|
||||
|
||||
Reference in New Issue
Block a user