diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-26 14:43:43 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-26 14:43:43 +0000 |
commit | e204d7ebd81383ba3359d1d3b28304ca54a96b2b (patch) | |
tree | e3659a04836af4f820526c9629e5264bec30f668 | |
parent | 8467d86f8aacf54657f247d69b7413a4ce879d6f (diff) | |
download | ruby-e204d7ebd81383ba3359d1d3b28304ca54a96b2b.tar.gz |
eval.c: suppress a warning
* eval.c (setup_exception): suppress a "clobbered" warning by gcc
4.9.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -515,7 +515,7 @@ setup_exception(rb_thread_t *th, int tag, volatile VALUE mesg, VALUE cause) PUSH_TAG(); if ((status = EXEC_TAG()) == 0) { th->errinfo = Qnil; - e = rb_obj_as_string(e); + e = rb_obj_as_string(mesg); th->errinfo = mesg; if (file && line) { warn_printf("Exception `%"PRIsVALUE"' at %s:%d - %"PRIsVALUE"\n", |