mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-02-06 15:05:19 +00:00
Fix compilation warnings (#3707)
Compilation warnings were reported on mac: ``` core/shared/mem-alloc/ems/ems_gc.c:454:22: warning: passing arguments to 'wasm_runtime_gc_prepare' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gct_vm_gc_prepare(NULL); ^ core/shared/mem-alloc/ems/ems_gc.c:466:23: warning: passing arguments to 'wasm_runtime_gc_finalize' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gct_vm_gc_finished(NULL); ^ 2 warnings generated. ```
This commit is contained in:
parent
da25906ed4
commit
5b8dfbce75
|
@ -309,10 +309,10 @@ void
|
|||
wasm_runtime_set_wasm_object_extra_info_flag(gc_object_t obj, bool set);
|
||||
|
||||
void
|
||||
wasm_runtime_gc_prepare();
|
||||
wasm_runtime_gc_prepare(void *exec_env);
|
||||
|
||||
void
|
||||
wasm_runtime_gc_finalize();
|
||||
wasm_runtime_gc_finalize(void *exec_env);
|
||||
#endif /* end of WASM_ENABLE_GC != 0 */
|
||||
|
||||
#define GC_HEAP_STAT_SIZE (128 / 4)
|
||||
|
|
Loading…
Reference in New Issue
Block a user