Issue #16901 has been updated by nobu (Nobuyoshi Nakada).


Sorry, it's for 2.7.
It should be in ruby/ruby.h, near `rb_warn` and so on.

----------------------------------------
Bug #16901: `-W:no-deprecated` does not stop some deprecated warnings
https://bugs.ruby-lang.org/issues/16901#change-85723

* 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: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>