Skip to content

Commit 933e49d

Browse files
authored
appease a few compiler warnings (-Wstrict-prototypes) (#4465)
1 parent d6fc18e commit 933e49d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

core/iwasm/aot/aot_loader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4711,7 +4711,7 @@ aot_unload(AOTModule *module)
47114711
}
47124712

47134713
uint32
4714-
aot_get_plt_table_size()
4714+
aot_get_plt_table_size(void)
47154715
{
47164716
return get_plt_table_size();
47174717
}

core/iwasm/compilation/aot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
static char aot_error[128];
99

1010
char *
11-
aot_get_last_error()
11+
aot_get_last_error(void)
1212
{
1313
return aot_error[0] == '\0' ? "" : aot_error;
1414
}

core/iwasm/include/aot_export.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ void
9898
aot_destroy_aot_file(uint8_t *aot_file);
9999

100100
char *
101-
aot_get_last_error();
101+
aot_get_last_error(void);
102102

103103
uint32_t
104-
aot_get_plt_table_size();
104+
aot_get_plt_table_size(void);
105105

106106
#ifdef __cplusplus
107107
}

0 commit comments

Comments
 (0)