diff options
| author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-01 11:59:50 +0000 |
|---|---|---|
| committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-01 11:59:50 +0000 |
| commit | b412c934315b81030097be2b7946f52dbed2f681 (patch) | |
| tree | 570def511e9e903cb7950efed9e94643d31b7729 /sprintf.c | |
| parent | d2e1687c3d558a234842f9312b19568956f8e660 (diff) | |
| download | ruby-b412c934315b81030097be2b7946f52dbed2f681.tar.gz ruby-b412c934315b81030097be2b7946f52dbed2f681.tar.xz ruby-b412c934315b81030097be2b7946f52dbed2f681.zip | |
* eval.c (rb_interrupt): trick to suppress GCC warning.
* sprintf.c (rb_str_format): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sprintf.c')
| -rw-r--r-- | sprintf.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |
