From 933e49df18b19187408bb8f3662aa864564781b5 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 10 Jul 2025 09:28:00 +0900 Subject: [PATCH] appease a few compiler warnings (-Wstrict-prototypes) (#4465) --- core/iwasm/aot/aot_loader.c | 2 +- core/iwasm/compilation/aot.c | 2 +- core/iwasm/include/aot_export.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/iwasm/aot/aot_loader.c b/core/iwasm/aot/aot_loader.c index 358ec5d1d..1bbc03a95 100644 --- a/core/iwasm/aot/aot_loader.c +++ b/core/iwasm/aot/aot_loader.c @@ -4711,7 +4711,7 @@ aot_unload(AOTModule *module) } uint32 -aot_get_plt_table_size() +aot_get_plt_table_size(void) { return get_plt_table_size(); } diff --git a/core/iwasm/compilation/aot.c b/core/iwasm/compilation/aot.c index 81fdb1284..5e1e554ac 100644 --- a/core/iwasm/compilation/aot.c +++ b/core/iwasm/compilation/aot.c @@ -8,7 +8,7 @@ static char aot_error[128]; char * -aot_get_last_error() +aot_get_last_error(void) { return aot_error[0] == '\0' ? "" : aot_error; } diff --git a/core/iwasm/include/aot_export.h b/core/iwasm/include/aot_export.h index 4bdf58e1f..e4072ab72 100644 --- a/core/iwasm/include/aot_export.h +++ b/core/iwasm/include/aot_export.h @@ -98,10 +98,10 @@ void aot_destroy_aot_file(uint8_t *aot_file); char * -aot_get_last_error(); +aot_get_last_error(void); uint32_t -aot_get_plt_table_size(); +aot_get_plt_table_size(void); #ifdef __cplusplus }