From 8d9bf18ac3fdf77ede33c01d4881f1f3b3640904 Mon Sep 17 00:00:00 2001 From: Karl Fessel Date: Fri, 8 Oct 2021 05:24:48 +0200 Subject: [PATCH] Make include headers follow strict protoype rule (#773) Change function arguments to (void) instead of () to avoid compilation warnings when compiling with '-Wstrict-prototypes' flag. --- core/iwasm/common/wasm_runtime_common.c | 4 ++-- core/iwasm/include/wasm_export.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/iwasm/common/wasm_runtime_common.c b/core/iwasm/common/wasm_runtime_common.c index 6ddd28e6..e7db08f5 100644 --- a/core/iwasm/common/wasm_runtime_common.c +++ b/core/iwasm/common/wasm_runtime_common.c @@ -852,7 +852,7 @@ wasm_runtime_destroy_exec_env(WASMExecEnv *exec_env) } bool -wasm_runtime_init_thread_env() +wasm_runtime_init_thread_env(void) { #ifdef BH_PLATFORM_WINDOWS if (os_thread_env_init() != 0) @@ -873,7 +873,7 @@ wasm_runtime_init_thread_env() } void -wasm_runtime_destroy_thread_env() +wasm_runtime_destroy_thread_env(void) { #if WASM_ENABLE_AOT != 0 #ifdef OS_ENABLE_HW_BOUND_CHECK diff --git a/core/iwasm/include/wasm_export.h b/core/iwasm/include/wasm_export.h index e23a8ebd..0a15066a 100644 --- a/core/iwasm/include/wasm_export.h +++ b/core/iwasm/include/wasm_export.h @@ -421,13 +421,13 @@ wasm_runtime_destroy_exec_env(wasm_exec_env_t exec_env); * @return true if success, false otherwise */ WASM_RUNTIME_API_EXTERN bool -wasm_runtime_init_thread_env(); +wasm_runtime_init_thread_env(void); /** * Destroy thread environment */ WASM_RUNTIME_API_EXTERN void -wasm_runtime_destroy_thread_env(); +wasm_runtime_destroy_thread_env(void); /** * Get WASM module instance from execution environment