[ruby-core:98449] [Ruby master Bug#16901] `-W:no-deprecated` does not stop some deprecated warnings
From:
nagachika00@...
Date:
2020-05-20 08:31:39 UTC
List:
ruby-core #98449
Issue #16901 has been updated by nagachika (Tomoyuki Chikanaga).
Backport changed from 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN to 2.5: DONTNEED, 2.6: DONTNEED, 2.7: REQUIRED
Thank you for the patch for 2.7. I will fill Backport field and close this ticket to be noticed as backport ticket.
----------------------------------------
Bug #16901: `-W:no-deprecated` does not stop some deprecated warnings
https://bugs.ruby-lang.org/issues/16901#change-85724
* 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: DONTNEED, 2.6: DONTNEED, 2.7: REQUIRED
----------------------------------------
```
$ 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:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>