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.
This commit is contained in:
Karl Fessel 2021-10-08 05:24:48 +02:00 committed by GitHub
parent 7191ecf880
commit 8d9bf18ac3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -852,7 +852,7 @@ wasm_runtime_destroy_exec_env(WASMExecEnv *exec_env)
} }
bool bool
wasm_runtime_init_thread_env() wasm_runtime_init_thread_env(void)
{ {
#ifdef BH_PLATFORM_WINDOWS #ifdef BH_PLATFORM_WINDOWS
if (os_thread_env_init() != 0) if (os_thread_env_init() != 0)
@ -873,7 +873,7 @@ wasm_runtime_init_thread_env()
} }
void void
wasm_runtime_destroy_thread_env() wasm_runtime_destroy_thread_env(void)
{ {
#if WASM_ENABLE_AOT != 0 #if WASM_ENABLE_AOT != 0
#ifdef OS_ENABLE_HW_BOUND_CHECK #ifdef OS_ENABLE_HW_BOUND_CHECK

View File

@ -421,13 +421,13 @@ wasm_runtime_destroy_exec_env(wasm_exec_env_t exec_env);
* @return true if success, false otherwise * @return true if success, false otherwise
*/ */
WASM_RUNTIME_API_EXTERN bool WASM_RUNTIME_API_EXTERN bool
wasm_runtime_init_thread_env(); wasm_runtime_init_thread_env(void);
/** /**
* Destroy thread environment * Destroy thread environment
*/ */
WASM_RUNTIME_API_EXTERN void WASM_RUNTIME_API_EXTERN void
wasm_runtime_destroy_thread_env(); wasm_runtime_destroy_thread_env(void);
/** /**
* Get WASM module instance from execution environment * Get WASM module instance from execution environment