diff options
| author | Jeremy Evans <code@jeremyevans.net> | 2020-01-22 09:18:08 -0800 |
|---|---|---|
| committer | Jeremy Evans <code@jeremyevans.net> | 2020-01-22 11:19:13 -0800 |
| commit | e18b817b1f0a4c318f1f0fe54fceaa5cbc85e8ab (patch) | |
| tree | f9f07e27da476af8794414176f4bf084c17e233a /string.c | |
| parent | 28d31ead34baff1c4abc0d7d902ef4bc1d576fb2 (diff) | |
Make taint warnings non-verbose instead of verbose
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2856
Diffstat (limited to 'string.c')
| -rw-r--r-- | string.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -910,14 +910,14 @@ rb_enc_str_new_static(const char *ptr, long len, rb_encoding *enc) VALUE rb_tainted_str_new(const char *ptr, long len) { - rb_warning("rb_tainted_str_new is deprecated and will be removed in Ruby 3.2."); + rb_warn("rb_tainted_str_new is deprecated and will be removed in Ruby 3.2."); return rb_str_new(ptr, len); } VALUE rb_tainted_str_new_cstr(const char *ptr) { - rb_warning("rb_tainted_str_new_cstr is deprecated and will be removed in Ruby 3.2."); + rb_warn("rb_tainted_str_new_cstr is deprecated and will be removed in Ruby 3.2."); return rb_str_new_cstr(ptr); } |
