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 | 982450e24fb275644664499cea197deae3f5722b (patch) | |
tree | 570def511e9e903cb7950efed9e94643d31b7729 /eval.c | |
parent | a056546f0dfa9af3d358c70e2e66bbaf5b4fef8f (diff) | |
download | ruby-982450e24fb275644664499cea197deae3f5722b.tar.gz |
* 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
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -435,8 +435,7 @@ rb_exc_fatal(VALUE mesg) void rb_interrupt(void) { - static const char fmt[1] = {'\0'}; - rb_raise(rb_eInterrupt, fmt); + rb_raise(rb_eInterrupt, "%s", ""); } static VALUE get_errinfo(void); |