aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--process.c12
2 files changed, 13 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index ef9352f5d6..73f82e93df 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/process.c b/process.c
index d2290826b7..8b0565b921 100644
--- a/process.c
+++ b/process.c
@@ -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