Browse Source

make include headers follow strict protoype rule (#331)

Karl Fessel 5 years ago
parent
commit
37aae1bc49

+ 2 - 2
core/iwasm/common/wasm_runtime_common.h

@@ -81,7 +81,7 @@ set_error_buf_v(char *error_buf, uint32 error_buf_size, const char *format,
 
 /* See wasm_export.h for description */
 bool
-wasm_runtime_init();
+wasm_runtime_init(void);
 
 /* See wasm_export.h for description */
 bool
@@ -89,7 +89,7 @@ wasm_runtime_full_init(RuntimeInitArgs *init_args);
 
 /* See wasm_export.h for description */
 void
-wasm_runtime_destroy();
+wasm_runtime_destroy(void);
 
 /* See wasm_export.h for description */
 PackageType

+ 2 - 2
core/iwasm/include/wasm_export.h

@@ -128,7 +128,7 @@ typedef struct RuntimeInitArgs {
  * @return true if success, false otherwise
  */
 bool
-wasm_runtime_init();
+wasm_runtime_init(void);
 
 /**
  * Initialize the WASM runtime environment, and also initialize
@@ -146,7 +146,7 @@ wasm_runtime_full_init(RuntimeInitArgs *init_args);
  * Destroy the WASM runtime environment.
  */
 void
-wasm_runtime_destroy();
+wasm_runtime_destroy(void);
 
 /**
  * Allocate memory from runtime memory environment.

+ 2 - 2
core/shared/platform/include/platform_api_vmcore.h

@@ -25,13 +25,13 @@ extern "C" {
  *
  * @return 0 if success
  */
-int bh_platform_init();
+int bh_platform_init(void);
 
 /**
  * Destroy the platform internal resources if needed,
  * this function is called by wasm_runtime_destroy()
  */
-void bh_platform_destroy();
+void bh_platform_destroy(void);
 
 /**
  ******** memory allocator APIs **********