ruby-changes:69059
From: Maxime <ko1@a...>
Date: Thu, 21 Oct 2021 08:20:42 +0900 (JST)
Subject: [ruby-changes:69059] d5f18f7845 (master): Add (void) for no arg functions
https://git.ruby-lang.org/ruby.git/commit/?id=d5f18f7845 From d5f18f7845f0f0fb3024ada63a552deac9c11ad7 Mon Sep 17 00:00:00 2001 From: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@s...> Date: Wed, 14 Jul 2021 10:08:33 -0400 Subject: Add (void) for no arg functions --- yjit_asm.h | 2 +- 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); https://github.com/ruby/ruby/blob/trunk/yjit_asm.h#L256 // 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 = { https://github.com/ruby/ruby/blob/trunk/yjit_iface.c#L937 }; // 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); -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/