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

ruby-changes:71436

From: Nobuyoshi <ko1@a...>
Date: Wed, 16 Mar 2022 20:49:27 +0900 (JST)
Subject: [ruby-changes:71436] 6d8f396f37 (master): Suppress warnings by OpenSSL 3

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

From 6d8f396f37350b7aa9c85a097929f54a0939448b Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 16 Mar 2022 18:35:59 +0900
Subject: Suppress warnings by OpenSSL 3

---
 ext/openssl/extconf.rb | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb
index fedcb930f5..467f7e7a86 100644
--- a/ext/openssl/extconf.rb
+++ b/ext/openssl/extconf.rb
@@ -171,6 +171,7 @@ have_func("SSL_CTX_set_post_handshake_auth") https://github.com/ruby/ruby/blob/trunk/ext/openssl/extconf.rb#L171
 have_func("EVP_PKEY_check")
 
 # added in 3.0.0
+openssl_3 =
 have_func("SSL_set0_tmp_dh_pkey")
 have_func("ERR_get_error_all")
 have_func("TS_VERIFY_CTX_set_certs(NULL, NULL)", "openssl/ts.h")
@@ -183,6 +184,12 @@ have_func("EVP_PKEY_dup") https://github.com/ruby/ruby/blob/trunk/ext/openssl/extconf.rb#L184
 
 Logging::message "=== Checking done. ===\n"
 
+if openssl_3
+  if $warnflags.sub!(/-W\K(?=deprecated-declarations)/, 'no-')
+    $warnflags << " -Wno-incompatible-pointer-types-discards-qualifiers"
+  end
+end
+
 create_header
 create_makefile("openssl")
 Logging::message "Done.\n"
-- 
cgit v1.2.1


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

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