summaryrefslogtreecommitdiff
path: root/ext/openssl
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-27 01:48:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-27 01:48:52 +0000
commit4c12eb747e36b99fc3831bf1d8ffca1777581870 (patch)
tree1c6569d39b024ba8f9e68d836c0b70b097a200ae /ext/openssl
parenta77ea177fe6609137c677d2c33453467eaea30df (diff)
* ext/openssl/extconf.rb: suppress useless deprecation warnings
from OpenSSL added by Apple. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl')
-rw-r--r--ext/openssl/extconf.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb
index 3cea2ded7bb..44ea3e5d0ea 100644
--- a/ext/openssl/extconf.rb
+++ b/ext/openssl/extconf.rb
@@ -146,6 +146,9 @@ have_struct_member("X509_ATTRIBUTE", "single", "openssl/x509.h")
message "=== Checking done. ===\n"
+if try_compile("", flag = " -Wno-deprecated-declarations")
+ $warnflags << flag
+end
create_header
create_makefile("openssl")
message "Done.\n"