From: zn@... Date: 2020-05-20T03:00:03+00:00 Subject: [ruby-core:98446] [Ruby master Bug#16901] `-W:no-deprecated` does not stop some deprecated warnings Issue #16901 has been reported by znz (Kazuhiro NISHIYAMA). ---------------------------------------- Bug #16901: `-W:no-deprecated` does not stop some deprecated warnings https://bugs.ruby-lang.org/issues/16901 * Author: znz (Kazuhiro NISHIYAMA) * Status: Open * Priority: Normal * ruby -v: ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux] * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN ---------------------------------------- ``` $ ruby -v -W:no-deprecated -e 'IO.read(IO::NULL,{dummy:0})' ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux] -e:1: warning: Using the last argument as keyword parameters is deprecated ``` I attach a draft patch for ruby_2_7 branch. I don't know where declaration of `rb_warn_deprecated` should be. ---Files-------------------------------- use-rb_warn_deprecated-instead-of-rb_warn.diff (1.82 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: