Project

General

Profile

Bug #16901

`-W:no-deprecated` does not stop some deprecated warnings

Added by znz (Kazuhiro NISHIYAMA) 3 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux]
[ruby-core:98446]

Description

$ 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) use-rb_warn_deprecated-instead-of-rb_warn.diff znz (Kazuhiro NISHIYAMA), 05/20/2020 02:55 AM
use-rb_warn_deprecated-instead-of-rb_warn-2.diff (2.54 KB) use-rb_warn_deprecated-instead-of-rb_warn-2.diff update declaration position znz (Kazuhiro NISHIYAMA), 05/20/2020 12:58 PM

Also available in: Atom PDF