ruby-changes:11434
From: knu <ko1@a...>
Date: Mon, 23 Mar 2009 21:55:24 +0900 (JST)
Subject: [ruby-changes:11434] Ruby:r23059 (ruby_1_8): * process.c: Eliminate an "unused variable" warning.
knu 2009-03-23 21:54:36 +0900 (Mon, 23 Mar 2009) New Revision: 23059 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23059 Log: * process.c: Eliminate an "unused variable" warning. Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/process.c Index: ruby_1_8/process.c =================================================================== --- ruby_1_8/process.c (revision 23058) +++ ruby_1_8/process.c (revision 23059) @@ -3649,15 +3649,19 @@ rb_define_module_function(rb_mProcess, "setrlimit", proc_setrlimit, -1); #ifdef RLIM2NUM { - VALUE inf = RLIM2NUM(RLIM_INFINITY), v; + VALUE inf = RLIM2NUM(RLIM_INFINITY); rb_define_const(rb_mProcess, "RLIM_INFINITY", inf); #ifdef RLIM_SAVED_MAX - 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 #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 Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 23058) +++ ruby_1_8/ChangeLog (revision 23059) @@ -1,3 +1,7 @@ +Mon Mar 23 21:54:20 2009 Akinori MUSHA <knu@i...> + + * process.c: Eliminate an "unused variable" warning. + Mon Mar 23 21:18:30 2009 Akinori MUSHA <knu@i...> * ext/stringio/stringio.c (StringIO#ungetbyte): New method -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/