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
This commit is contained in:
parent
f64a53462e
commit
268203c5fc
@ -101,7 +101,10 @@ f_lt_p(VALUE x, VALUE y)
|
|||||||
return RTEST(rb_funcall(x, '<', 1, 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, '%')
|
binop(mod, '%')
|
||||||
|
#endif
|
||||||
|
|
||||||
inline static VALUE
|
inline static VALUE
|
||||||
f_mul(VALUE x, VALUE y)
|
f_mul(VALUE x, VALUE y)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user