From 233c2018f1b873a441af22848cee6dedaed3ad72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Mon, 11 May 2020 14:27:25 +0900 Subject: drop varargs.h support This header file is simply out of date (for decades since at least 1989). It's the 21st century. Just stop using it. --- compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compile.c') diff --git a/compile.c b/compile.c index 01a740e701..3474a8fe9d 100644 --- a/compile.c +++ b/compile.c @@ -1209,7 +1209,7 @@ new_insn_body(rb_iseq_t *iseq, int line_no, enum ruby_vminsn_type insn_id, int a va_list argv; if (argc > 0) { int i; - va_init_list(argv, argc); + va_start(argv, argc); operands = compile_data_alloc2(iseq, sizeof(VALUE), argc); for (i = 0; i < argc; i++) { VALUE v = va_arg(argv, VALUE); -- cgit v1.2.3