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

ruby-changes:28708

From: nobu <ko1@a...>
Date: Wed, 15 May 2013 17:06:22 +0900 (JST)
Subject: [ruby-changes:28708] nobu:r40759 (trunk): vm_eval.c: suppress warning

nobu	2013-05-15 17:06:07 +0900 (Wed, 15 May 2013)

  New Revision: 40759

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

  Log:
    vm_eval.c: suppress warning
    
    * vm_eval.c (eval_string_with_cref): narrow a variable scope into the
      EXEC_TAG block to suppress -Wclobberd warning.

  Modified files:
    trunk/vm_eval.c

Index: vm_eval.c
===================================================================
--- vm_eval.c	(revision 40758)
+++ vm_eval.c	(revision 40759)
@@ -1164,7 +1164,6 @@ eval_string_with_cref(VALUE self, VALUE https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L1164
     int state;
     VALUE result = Qundef;
     VALUE envval;
-    rb_binding_t *bind = 0;
     rb_thread_t *th = GET_THREAD();
     rb_env_t *env = NULL;
     rb_block_t block, *base_block;
@@ -1180,6 +1179,7 @@ eval_string_with_cref(VALUE self, VALUE https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L1179
     mild_compile_error = th->mild_compile_error;
     TH_PUSH_TAG(th);
     if ((state = TH_EXEC_TAG()) == 0) {
+	rb_binding_t *bind = 0;
 	rb_iseq_t *iseq;
 	volatile VALUE iseqval;
 

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

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