ruby-changes:6210
From: ko1 <ko1@a...>
Date: Mon, 30 Jun 2008 02:13:54 +0900 (JST)
Subject: [ruby-changes:6210] Ruby:r17722 (trunk): * process.c (Init_process): fix to avoid a warning.
ko1 2008-06-30 02:13:37 +0900 (Mon, 30 Jun 2008) New Revision: 17722 Modified files: trunk/ChangeLog trunk/process.c Log: * process.c (Init_process): fix to avoid a warning. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=17722&r2=17721&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/process.c?r1=17722&r2=17721&diff_format=u Index: ChangeLog =================================================================== --- ChangeLog (revision 17721) +++ ChangeLog (revision 17722) @@ -1,3 +1,7 @@ +Mon Jun 30 02:10:32 2008 Koichi Sasada <ko1@a...> + + * process.c (Init_process): fix to avoid a warning. + Mon Jun 30 01:52:05 2008 Yusuke Endoh <mame@t...> * test/ruby/test_parse.rb: remove tests for open_args. Index: process.c =================================================================== --- process.c (revision 17721) +++ process.c (revision 17722) @@ -5152,12 +5152,12 @@ rb_define_module_function(rb_mProcess, "setrlimit", proc_setrlimit, -1); #ifdef RLIM2NUM { - VALUE inf = RLIM2NUM(RLIM_INFINITY), v; - rb_define_const(rb_mProcess, "RLIM_INFINITY", inf); + VALUE inf = RLIM2NUM(RLIM_INFINITY); #ifdef RLIM_SAVED_MAX - v = RLIM_INFINITY == RLIM_SAVED_MAX ? inf : RLIM2NUM(RLIM_SAVED_MAX); + 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); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/