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:
parent
350b686a2c
commit
d5f18f7845
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue