From 982450e24fb275644664499cea197deae3f5722b Mon Sep 17 00:00:00 2001 From: shyouhei Date: Tue, 1 Jul 2008 11:59:50 +0000 Subject: * eval.c (rb_interrupt): trick to suppress GCC warning. * sprintf.c (rb_str_format): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- sprintf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sprintf.c') diff --git a/sprintf.c b/sprintf.c index 57e1cbb681..e5ac2a4408 100644 --- a/sprintf.c +++ b/sprintf.c @@ -979,8 +979,8 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt) */ if (posarg >= 0 && nextarg < argc) { const char *mesg = "too many arguments for format string"; - if (RTEST(ruby_debug)) rb_raise(rb_eArgError, mesg); - if (RTEST(ruby_verbose)) rb_warn(mesg); + if (RTEST(ruby_debug)) rb_raise(rb_eArgError, "%s", mesg); + if (RTEST(ruby_verbose)) rb_warn("%s", mesg); } rb_str_resize(result, blen); -- cgit v1.2.3