Added rb_warn_deprecated_to_remove

Warn the deprecation and future removal, with obeying the warning
flag.
This commit is contained in:
Nobuyoshi Nakada 2020-01-23 21:42:05 +09:00
parent 0ea759eac9
commit aefb13eb63
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60
6 changed files with 29 additions and 14 deletions

2
hash.c
View file

@ -4968,7 +4968,7 @@ env_fetch(int argc, VALUE *argv, VALUE _)
int
rb_env_path_tainted(void)
{
rb_warn("rb_env_path_tainted is deprecated and will be removed in Ruby 3.2.");
rb_warn_deprecated_to_remove("rb_env_path_tainted", "3.2");
return 0;
}