From 4b4622f711e598d2329f4a14977914f45dd3ae53 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sat, 24 Apr 2021 11:38:56 +0900 Subject: time.c: `fixable_time_t_p` is not used with `MRB_NO_FLOAT`; #5421 --- mrbgems/mruby-time/src/time.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mrbgems/mruby-time/src/time.c b/mrbgems/mruby-time/src/time.c index 44bea5ffa..2a5e9dd6b 100644 --- a/mrbgems/mruby-time/src/time.c +++ b/mrbgems/mruby-time/src/time.c @@ -226,6 +226,7 @@ typedef mrb_int mrb_sec; (sizeof(time_t) <= 4 ? INT32_MAX : INT64_MAX) \ ) +#ifndef MRB_NO_FLOAT /* return true if time_t is fit in mrb_int */ static mrb_bool fixable_time_t_p(time_t v) @@ -236,6 +237,7 @@ fixable_time_t_p(time_t v) if (MRB_INT_MIN > (mrb_int)v) return FALSE; return TRUE; } +#endif static time_t mrb_to_time_t(mrb_state *mrb, mrb_value obj, time_t *usec) -- cgit v1.2.3