summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-16 07:47:48 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-16 07:47:48 (GMT)
commit5d09df327321bb8827703c1719ffa137ded94eeb (patch)
tree7c05af7ab648247e5d4d3f5fa2aba09c40b91d39 /random.c
parent1bbdb76e168d05511b8e18d83a037cc2aac158c1 (diff)
ruby.h: suppress false warnings
* include/ruby/ruby.h (rb_data_object_alloc_warning): enable only if __builtin_choose_expr works with __builtin_constant_p so that warnings will be suppressed if klass is 0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'random.c')
-rw-r--r--random.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/random.c b/random.c
index fed85e0..99e309d 100644
--- a/random.c
+++ b/random.c
@@ -491,6 +491,8 @@ fill_random_bytes(void *seed, size_t size)
}
else {
if (!old_prov) {
+# undef RUBY_UNTYPED_DATA_WARNING
+# define RUBY_UNTYPED_DATA_WARNING 0
rb_gc_register_mark_object(Data_Wrap_Struct(0, 0, release_crypt, &prov));
}
else {