summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-05-11 14:27:25 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-05-11 14:56:51 +0900
commit233c2018f1b873a441af22848cee6dedaed3ad72 (patch)
tree74b30ad8ca8dd5c08a94660543c02a428b0e9464 /compile.c
parent534277fa7b3b8aa7c25db51af0c1b32e7dfa6139 (diff)
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.
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
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);