From f11daeb6250e161306c91786a0a02bc6bf490e35 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 2 Jul 2025 10:15:24 +0900 Subject: [PATCH] Declaring with a prototype In C99, a function declaration with an empty argument list means "no information about the arguments", not "it takes no arguments" - the so-called old K&R style. --- yjit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yjit.h b/yjit.h index 9360e7fe3c..4689655002 100644 --- a/yjit.h +++ b/yjit.h @@ -37,7 +37,7 @@ void rb_yjit_collect_binding_alloc(void); void rb_yjit_collect_binding_set(void); void rb_yjit_compile_iseq(const rb_iseq_t *iseq, rb_execution_context_t *ec, bool jit_exception); void rb_yjit_init(bool yjit_enabled); -void rb_yjit_free_at_exit(); +void rb_yjit_free_at_exit(void); void rb_yjit_bop_redefined(int redefined_flag, enum ruby_basic_operators bop); void rb_yjit_constant_state_changed(ID id); void rb_yjit_iseq_mark(void *payload);