ruby-changes:11433
From: knu <ko1@a...>
Date: Mon, 23 Mar 2009 21:54:05 +0900 (JST)
Subject: [ruby-changes:11433] Ruby:r23058 (trunk): * process.c (Init_process): Better patch for eliminating an
knu 2009-03-23 21:53:52 +0900 (Mon, 23 Mar 2009) New Revision: 23058 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23058 Log: * process.c (Init_process): Better patch for eliminating an "unused variable". Modified files: trunk/ChangeLog trunk/process.c Index: ChangeLog =================================================================== --- ChangeLog (revision 23057) +++ ChangeLog (revision 23058) @@ -1,3 +1,8 @@ +Mon Mar 23 21:52:26 2009 Akinori MUSHA <knu@i...> + + * process.c (Init_process): Better patch for eliminating an + "unused variable". + Mon Mar 23 21:41:14 2009 Akinori MUSHA <knu@i...> * ext/dbm/dbm.c (fdbm_initialize): Make the file variable Index: process.c =================================================================== --- process.c (revision 23057) +++ process.c (revision 23058) @@ -5449,13 +5449,17 @@ { VALUE inf = RLIM2NUM(RLIM_INFINITY); #ifdef RLIM_SAVED_MAX - VALUE v = RLIM_INFINITY == RLIM_SAVED_MAX ? inf : RLIM2NUM(RLIM_SAVED_MAX); - rb_define_const(rb_mProcess, "RLIM_SAVED_MAX", v); + { + VALUE v = RLIM_INFINITY == RLIM_SAVED_MAX ? inf : RLIM2NUM(RLIM_SAVED_MAX); + rb_define_const(rb_mProcess, "RLIM_SAVED_MAX", v); + } #endif rb_define_const(rb_mProcess, "RLIM_INFINITY", inf); #ifdef RLIM_SAVED_CUR - v = RLIM_INFINITY == RLIM_SAVED_CUR ? inf : RLIM2NUM(RLIM_SAVED_CUR); - rb_define_const(rb_mProcess, "RLIM_SAVED_CUR", v); + { + VALUE v = RLIM_INFINITY == RLIM_SAVED_CUR ? inf : RLIM2NUM(RLIM_SAVED_CUR); + rb_define_const(rb_mProcess, "RLIM_SAVED_CUR", v); + } #endif } #ifdef RLIMIT_CORE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/