diff options
author | Maxime Chevalier-Boisvert <[email protected]> | 2021-07-14 10:08:33 -0400 |
---|---|---|
committer | Alan Wu <[email protected]> | 2021-10-20 18:19:37 -0400 |
commit | d5f18f7845f0f0fb3024ada63a552deac9c11ad7 (patch) | |
tree | 03be34e395196e09716a35664c0563317114c935 | |
parent | 350b686a2c6cc8f27466222cf8520a8fda931ea2 (diff) |
Add (void) for no arg functions
-rw-r--r-- | yjit_asm.h | 2 | ||||
-rw-r--r-- | yjit_iface.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/yjit_asm.h b/yjit_asm.h index 93762987bc..de6ccb1cdc 100644 --- a/yjit_asm.h +++ b/yjit_asm.h @@ -256,7 +256,7 @@ x86opnd_t const_ptr_opnd(const void *ptr); // Machine code allocation uint8_t* alloc_exec_mem(uint32_t mem_size); -code_page_t* alloc_code_page(); +code_page_t* alloc_code_page(void); void free_code_page(code_page_t* code_page); // Code block methods diff --git a/yjit_iface.c b/yjit_iface.c index a7d18e0687..db91b07e5a 100644 --- a/yjit_iface.c +++ b/yjit_iface.c @@ -937,7 +937,7 @@ static const rb_data_type_t yjit_code_page_type = { }; // Allocate a code page and wrap it into a Ruby object owned by the GC -VALUE rb_yjit_code_page_alloc() +VALUE rb_yjit_code_page_alloc(void) { code_page_t* code_page = alloc_code_page(); VALUE cp_obj = TypedData_Wrap_Struct(0, &yjit_code_page_type, code_page); |