1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

rat.c: suppress warning

* ext/-test-/rational/rat.c (big): used only if GMP is available.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-09-08 10:52:52 +00:00
parent 8953eee69f
commit 3fa0edda05

View file

@ -1,6 +1,7 @@
#include "ruby.h"
#include "internal.h"
#if defined(HAVE_LIBGMP) && defined(HAVE_GMP_H)
static VALUE
big(VALUE x)
{
@ -11,6 +12,7 @@ big(VALUE x)
rb_raise(rb_eTypeError, "can't convert %s to Bignum",
rb_obj_classname(x));
}
#endif
static VALUE
gcd_normal(VALUE x, VALUE y)