summaryrefslogtreecommitdiff
path: root/ext/digest/digest.c
diff options
context:
space:
mode:
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 c5e1ca5da67..b177881cd01 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) {