mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue