summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-02-26 14:43:43 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-02-26 14:43:43 +0000
commite204d7ebd81383ba3359d1d3b28304ca54a96b2b (patch)
treee3659a04836af4f820526c9629e5264bec30f668 /eval.c
parent8467d86f8aacf54657f247d69b7413a4ce879d6f (diff)
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
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 761b7703a3..27cdb36206 100644
--- a/eval.c
+++ b/eval.c
@@ -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",