[前][次][番号順一覧][スレッド一覧]

ruby-changes:60701

From: Nobuyoshi <ko1@a...>
Date: Wed, 8 Apr 2020 23:32:45 +0900 (JST)
Subject: [ruby-changes:60701] e7128aa772 (master): Disable deprecation error on mingw

https://git.ruby-lang.org/ruby.git/commit/?id=e7128aa772

From e7128aa772787a9c9e95708e2d2534484861a765 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 8 Apr 2020 22:37:45 +0900
Subject: Disable deprecation error on mingw


diff --git a/random.c b/random.c
index f786cac..e567665 100644
--- a/random.c
+++ b/random.c
@@ -402,6 +402,8 @@ fill_random_bytes_syscall(void *seed, size_t size, int unused) https://github.com/ruby/ruby/blob/trunk/random.c#L402
 	old_prov = (HCRYPTPROV)ATOMIC_PTR_CAS(perm_prov, 0, prov);
 	if (LIKELY(!old_prov)) { /* no other threads acquired */
 	    if (prov != (HCRYPTPROV)INVALID_HANDLE_VALUE) {
+#undef RUBY_UNTYPED_DATA_WARNING
+#define RUBY_UNTYPED_DATA_WARNING 0
 		rb_gc_register_mark_object(Data_Wrap_Struct(0, 0, release_crypt, &perm_prov));
 	    }
 	}
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]