From e18b817b1f0a4c318f1f0fe54fceaa5cbc85e8ab Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Wed, 22 Jan 2020 09:18:08 -0800 Subject: Make taint warnings non-verbose instead of verbose --- ext/pathname/pathname.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/pathname') diff --git a/ext/pathname/pathname.c b/ext/pathname/pathname.c index 15f80d487e..e511560500 100644 --- a/ext/pathname/pathname.c +++ b/ext/pathname/pathname.c @@ -138,7 +138,7 @@ path_freeze(VALUE self) static VALUE path_taint(VALUE self) { - rb_warning("Pathname#taint is deprecated and will be removed in Ruby 3.2."); + rb_warn("Pathname#taint is deprecated and will be removed in Ruby 3.2."); return self; } @@ -151,7 +151,7 @@ path_taint(VALUE self) static VALUE path_untaint(VALUE self) { - rb_warning("Pathname#untaint is deprecated and will be removed in Ruby 3.2."); + rb_warn("Pathname#untaint is deprecated and will be removed in Ruby 3.2."); return self; } -- cgit v1.2.3