From 268203c5fc69114a9541f737fe51bc2e77ae8d15 Mon Sep 17 00:00:00 2001 From: mrkn Date: Fri, 11 Nov 2016 14:39:34 +0000 Subject: [PATCH] rational.c: prevent unused warning * rational.c (f_mod): define only when NDEBUG is not defined to prevent unused warning git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- rational.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rational.c b/rational.c index e4f59895bf..0044024cbf 100644 --- a/rational.c +++ b/rational.c @@ -101,7 +101,10 @@ f_lt_p(VALUE x, VALUE y) return RTEST(rb_funcall(x, '<', 1, y)); } +#ifndef NDEBUG +/* f_mod is used only in f_gcd defined when NDEBUG is not defined */ binop(mod, '%') +#endif inline static VALUE f_mul(VALUE x, VALUE y)