diff options
Diffstat (limited to 'ext/iconv/iconv.c')
-rw-r--r-- | ext/iconv/iconv.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index 83a4b5e299..531745c38d 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -1208,7 +1208,9 @@ Init_iconv(void) { VALUE rb_cIconv = rb_define_class("Iconv", rb_cData); - warn_deprecated(); + if (!NIL_P(ruby_verbose)) { + warn_deprecated(); + } rb_define_alloc_func(rb_cIconv, iconv_s_allocate); rb_define_singleton_method(rb_cIconv, "open", iconv_s_open, -1); rb_define_singleton_method(rb_cIconv, "iconv", iconv_s_iconv, -1); |