summaryrefslogtreecommitdiff
path: root/ext/digest/digest.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-29 12:17:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-29 12:17:47 +0000
commit2f2f92b73ed49d5de6884945d14beaee45965739 (patch)
tree6daa8ebc7234b03a189d4a7234d540589537afd9 /ext/digest/digest.c
parentb5de461a49fc5a4fcaa122d6f3ca5c3fa338105b (diff)
digest: no check for hidden objects
* ext/digest/digest.c (get_digest_base_metadata): metadata objects are hidden from ruby level. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/digest/digest.c')
-rw-r--r--ext/digest/digest.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/digest/digest.c b/ext/digest/digest.c
index c5e1ca5..b177881 100644
--- a/ext/digest/digest.c
+++ b/ext/digest/digest.c
@@ -518,6 +518,8 @@ get_digest_base_metadata(VALUE klass)
if (NIL_P(p))
rb_raise(rb_eRuntimeError, "Digest::Base cannot be directly inherited in Ruby");
+#undef RUBY_UNTYPED_DATA_WARNING
+#define RUBY_UNTYPED_DATA_WARNING 0
Data_Get_Struct(obj, rb_digest_metadata_t, algo);
switch (algo->api_version) {