From 0df67a469561fab80b78478b99703ed893c4db07 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 12 Dec 2020 16:06:19 +0900 Subject: Signal handler type should be void --- vm_core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm_core.h') diff --git a/vm_core.h b/vm_core.h index f4517233ec..a4c0e874ec 100644 --- a/vm_core.h +++ b/vm_core.h @@ -1631,7 +1631,7 @@ extern void rb_vmdebug_debug_print_post(const rb_execution_context_t *ec, const #define SDR() rb_vmdebug_stack_dump_raw(GET_EC(), GET_EC()->cfp) #define SDR2(cfp) rb_vmdebug_stack_dump_raw(GET_EC(), (cfp)) void rb_vm_bugreport(const void *); -typedef RETSIGTYPE (*ruby_sighandler_t)(int); +typedef void (*ruby_sighandler_t)(int); NORETURN(void rb_bug_for_fatal_signal(ruby_sighandler_t default_sighandler, int sig, const void *, const char *fmt, ...)); /* functions about thread/vm execution */ -- cgit v1.2.3