From 996af2ce086249e904b2ce95ab2fcd1de7d757be Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 31 Aug 2020 14:58:31 +0900 Subject: 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 6a9aa2f2c3..9f8cdf8fe6 100644 --- a/error.c +++ b/error.c @@ -142,7 +142,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.3