summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'error.c')
-rw-r--r--error.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/error.c b/error.c
index 2e40408a16..4cf39d0e1f 100644
--- a/error.c
+++ b/error.c
@@ -166,6 +166,7 @@ static VALUE
rb_warn_m(self, mesg)
VALUE self, mesg;
{
+ if (NIL_P(ruby_verbose)) return;
rb_io_write(rb_stderr, mesg);
rb_io_write(rb_stderr, rb_default_rs);
return mesg;