From 82f2ba15944f16b13f5c297e0d1b324d9fbb92f4 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Tue, 8 Jul 2025 18:09:43 +0900 Subject: [PATCH] appease a few compiler warnings (-Wstrict-prototypes) --- 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 9d1129b8d6..ae6a20ee3f 100644 --- a/core/iwasm/aot/aot_loader.c +++ b/core/iwasm/aot/aot_loader.c @@ -4656,7 +4656,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 81fdb1284f..5e1e554ac1 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 4bdf58e1f2..e4072ab729 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 }