diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-03-16 18:35:59 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-03-16 20:49:00 +0900 |
commit | 6d8f396f37350b7aa9c85a097929f54a0939448b (patch) | |
tree | 2200d567c8e256874de08ee69f1b3f65b6034612 | |
parent | b426de9e8e3622da79b4d7b75782d648de735c1a (diff) | |
download | ruby-6d8f396f37350b7aa9c85a097929f54a0939448b.tar.gz |
Suppress warnings by OpenSSL 3
-rw-r--r-- | ext/openssl/extconf.rb | 7 |
1 files changed, 7 insertions, 0 deletions
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") 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") 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" |