From df3f52a6331f1a47af9933b77311a8650727d8d1 Mon Sep 17 00:00:00 2001 From: nagachika Date: Tue, 29 Sep 2020 22:43:25 +0900 Subject: merge revision(s) 996af2ce086249e904b2ce95ab2fcd1de7d757be: [Backport #16345] [Backport #17000] Disable deprecation warning by the default [Feature #16345] And `-w` option turns it on. --- error.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'error.c') diff --git a/error.c b/error.c index 9557d8552b..c29e90244a 100644 --- a/error.c +++ b/error.c @@ -128,7 +128,9 @@ rb_syntax_error_append(VALUE exc, VALUE file, int line, int column, return exc; } -static unsigned int warning_disabled_categories; +static unsigned int warning_disabled_categories = ( + 1U << RB_WARN_CATEGORY_DEPRECATED | + 0); static unsigned int rb_warning_category_mask(VALUE category) -- cgit v1.2.1