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

ruby-changes:34485

From: nobu <ko1@a...>
Date: Fri, 27 Jun 2014 00:03:10 +0900 (JST)
Subject: [ruby-changes:34485] nobu:r46566 (trunk): eval.c: suppress a warning

nobu	2014-06-27 00:03:04 +0900 (Fri, 27 Jun 2014)

  New Revision: 46566

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

  Log:
    eval.c: suppress a warning
    
    * eval.c (setup_exception): suppress a maybe-uninitialized false
      warning by gcc 4.8.

  Modified files:
    trunk/eval.c
Index: eval.c
===================================================================
--- eval.c	(revision 46565)
+++ eval.c	(revision 46566)
@@ -471,7 +471,7 @@ setup_exception(rb_thread_t *th, int tag https://github.com/ruby/ruby/blob/trunk/eval.c#L471
 {
     VALUE at;
     VALUE e;
-    const char *file;
+    const char *file = 0;
     volatile int line = 0;
     int nocause = 0;
 

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

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