[前][次][番号順一覧][スレッド一覧]

ruby-changes:33104

From: nobu <ko1@a...>
Date: Wed, 26 Feb 2014 23:43:51 +0900 (JST)
Subject: [ruby-changes:33104] nobu:r45183 (trunk): eval.c: suppress a warning

nobu	2014-02-26 23:43:43 +0900 (Wed, 26 Feb 2014)

  New Revision: 45183

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45183

  Log:
    eval.c: suppress a warning
    
    * eval.c (setup_exception): suppress a "clobbered" warning by gcc
      4.9.

  Modified files:
    trunk/eval.c
Index: eval.c
===================================================================
--- eval.c	(revision 45182)
+++ eval.c	(revision 45183)
@@ -515,7 +515,7 @@ setup_exception(rb_thread_t *th, int tag https://github.com/ruby/ruby/blob/trunk/eval.c#L515
 	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",

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]