From 7bf8802f43acf345d0c100c7eb61e5daf1836ed3 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Wed, 16 Oct 2024 11:03:01 +0200 Subject: [PATCH] [wasi] Remove unused string parameter from mono_wasm_load_runtime (#104608) Context: https://github.com/dotnet/runtime/pull/104356#issuecomment-2205858362 Co-authored-by: Pavel Savara --- src/mono/wasi/mono-include/driver.h | 2 +- src/mono/wasi/runtime/driver.c | 2 +- src/mono/wasi/runtime/main.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mono/wasi/mono-include/driver.h b/src/mono/wasi/mono-include/driver.h index 8931972755a6aa..a2d50c08db5127 100644 --- a/src/mono/wasi/mono-include/driver.h +++ b/src/mono/wasi/mono-include/driver.h @@ -5,7 +5,7 @@ #include #include -void mono_wasm_load_runtime (const char *unused, int debug_level); +void mono_wasm_load_runtime (int debug_level); int mono_wasm_add_assembly (const char *name, const unsigned char *data, unsigned int size); MonoAssembly* mono_wasm_assembly_load(const char *name); MonoMethod* mono_wasi_assembly_get_entry_point (MonoAssembly *assembly); diff --git a/src/mono/wasi/runtime/driver.c b/src/mono/wasi/runtime/driver.c index 80e831bb29ceab..09cb747711cae0 100644 --- a/src/mono/wasi/runtime/driver.c +++ b/src/mono/wasi/runtime/driver.c @@ -242,7 +242,7 @@ load_runtimeconfig (void) } void -mono_wasm_load_runtime (const char *unused, int debug_level) +mono_wasm_load_runtime (int debug_level) { const char *interp_opts = ""; diff --git a/src/mono/wasi/runtime/main.c b/src/mono/wasi/runtime/main.c index c81e1a798288bc..daa62764b773ab 100644 --- a/src/mono/wasi/runtime/main.c +++ b/src/mono/wasi/runtime/main.c @@ -50,7 +50,7 @@ int initialize_runtime() #ifndef WASM_SINGLE_FILE mono_set_assemblies_path("managed"); #endif - mono_wasm_load_runtime("", 0); + mono_wasm_load_runtime(0); #ifdef WASI_AFTER_RUNTIME_LOADED_CALLS // This is supplied from the MSBuild itemgroup @(WasiAfterRuntimeLoaded)