diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | process.c | 12 |
2 files changed, 13 insertions, 4 deletions
@@ -1,3 +1,8 @@ +Mon Mar 23 21:52:26 2009 Akinori MUSHA <knu@iDaemons.org> + + * process.c (Init_process): Better patch for eliminating an + "unused variable". + Mon Mar 23 21:41:14 2009 Akinori MUSHA <knu@iDaemons.org> * ext/dbm/dbm.c (fdbm_initialize): Make the file variable @@ -5449,13 +5449,17 @@ Init_process(void) { 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 |