ruby-changes:51635
From: normal <ko1@a...>
Date: Wed, 4 Jul 2018 10:26:41 +0900 (JST)
Subject: [ruby-changes:51635] normal:r63847 (trunk): internal.h (rb_warning_string): use PRINTF_ARGS
normal 2018-07-04 10:26:36 +0900 (Wed, 04 Jul 2018) New Revision: 63847 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63847 Log: internal.h (rb_warning_string): use PRINTF_ARGS Let compilers do a little extra validation for us Modified files: trunk/internal.h Index: internal.h =================================================================== --- internal.h (revision 63846) +++ internal.h (revision 63847) @@ -1249,7 +1249,7 @@ NORETURN(void ruby_deprecated_internal_f https://github.com/ruby/ruby/blob/trunk/internal.h#L1249 #define DEPRECATED_INTERNAL_FEATURE(func) \ (ruby_deprecated_internal_feature(func), UNREACHABLE) VALUE rb_warning_warn(VALUE mod, VALUE str); -VALUE rb_warning_string(const char *fmt, ...); +PRINTF_ARGS(VALUE rb_warning_string(const char *fmt, ...), 1, 2); /* eval.c */ VALUE rb_refinement_module_get_refined_class(VALUE module); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/