Strict declaration for mrb_istruct_size()

In C, `void` is required if there are no parameters.
This commit is contained in:
dearblue
2024-03-27 22:01:18 +09:00
parent ef94bfc2e6
commit 1c1c67b878
+1 -1
View File
@@ -30,7 +30,7 @@ struct RIStruct {
#define RISTRUCT(obj) ((struct RIStruct*)(mrb_ptr(obj)))
#define ISTRUCT_PTR(obj) (RISTRUCT(obj)->inline_data)
MRB_INLINE mrb_int mrb_istruct_size()
MRB_INLINE mrb_int mrb_istruct_size(void)
{
return ISTRUCT_DATA_SIZE;
}