From e294e6f417acc27d85c6e6a0e67ebf7a07c83485 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 30 Sep 2022 17:26:46 +0900 Subject: Split `with_warning_string_from` for the last named parameter --- error.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'error.c') diff --git a/error.c b/error.c index cfa086a1eb..f448902309 100644 --- a/error.c +++ b/error.c @@ -406,8 +406,10 @@ warning_string(rb_encoding *enc, const char *fmt, va_list args) } #define with_warning_string(mesg, enc, fmt) \ + with_warning_string_from(mesg, enc, fmt, fmt) +#define with_warning_string_from(mesg, enc, fmt, last_arg) \ VALUE mesg; \ - va_list args; va_start(args, fmt); \ + va_list args; va_start(args, last_arg); \ mesg = warning_string(enc, fmt, args); \ va_end(args); -- cgit v1.2.1