1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add (void) for no arg functions

This commit is contained in:
Maxime Chevalier-Boisvert 2021-07-14 10:08:33 -04:00 committed by Alan Wu
parent 350b686a2c
commit d5f18f7845
2 changed files with 2 additions and 2 deletions

View file

@ -256,7 +256,7 @@ x86opnd_t const_ptr_opnd(const void *ptr);
// Machine code allocation // Machine code allocation
uint8_t* alloc_exec_mem(uint32_t mem_size); 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); void free_code_page(code_page_t* code_page);
// Code block methods // Code block methods

View file

@ -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 // 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(); code_page_t* code_page = alloc_code_page();
VALUE cp_obj = TypedData_Wrap_Struct(0, &yjit_code_page_type, code_page); VALUE cp_obj = TypedData_Wrap_Struct(0, &yjit_code_page_type, code_page);