Skip to content

Commit 5b8dfbc

Browse files
authored
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. ```
1 parent da25906 commit 5b8dfbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/shared/mem-alloc/ems/ems_gc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,10 @@ void
309309
wasm_runtime_set_wasm_object_extra_info_flag(gc_object_t obj, bool set);
310310

311311
void
312-
wasm_runtime_gc_prepare();
312+
wasm_runtime_gc_prepare(void *exec_env);
313313

314314
void
315-
wasm_runtime_gc_finalize();
315+
wasm_runtime_gc_finalize(void *exec_env);
316316
#endif /* end of WASM_ENABLE_GC != 0 */
317317

318318
#define GC_HEAP_STAT_SIZE (128 / 4)

0 commit comments

Comments
 (0)