summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-16 07:49:27 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-16 07:49:27 (GMT)
commitc7988fd29d851cadf77cff865ce0af6e51dc9374 (patch)
tree2a6c5cb0d6d1e5f2449b22c66bdddc4191dbae8f /random.c
parent5d09df327321bb8827703c1719ffa137ded94eeb (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@49978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'random.c')
-rw-r--r--random.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/random.c b/random.c
index 99e309d..fed85e0 100644
--- a/random.c
+++ b/random.c
@@ -491,8 +491,6 @@ 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 {