summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-24 23:56:11 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-24 23:56:11 +0000
commit94bfebb3fad44c5418de4ef20493e314344b64c6 (patch)
tree2acd04cf6df894a0b9b242a9729b8de965ebd358 /error.c
parent5747a6c480edc60cd8d7f1deaabd3d65f5d14778 (diff)
* error.c (rb_warn_m): should not warn if -W0 is specified.
[ruby-talk:82675] * util.c (ruby_strtod): skip preceding zeros before counting digits in the mantissa. (ruby-bugs PR#1181) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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;