From 4c12eb747e36b99fc3831bf1d8ffca1777581870 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 27 Feb 2012 01:48:52 +0000 Subject: * 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 --- ext/digest/md5/extconf.rb | 3 +++ ext/digest/rmd160/extconf.rb | 3 +++ ext/digest/sha1/extconf.rb | 3 +++ ext/digest/sha2/extconf.rb | 3 +++ 4 files changed, 12 insertions(+) (limited to 'ext/digest') diff --git a/ext/digest/md5/extconf.rb b/ext/digest/md5/extconf.rb index ddfdb707f2..803741a6d9 100644 --- a/ext/digest/md5/extconf.rb +++ b/ext/digest/md5/extconf.rb @@ -22,4 +22,7 @@ have_header("sys/cdefs.h") $preload = %w[digest] +if try_compile("", flag = " -Wno-deprecated-declarations") + $warnflags << flag +end create_makefile("digest/md5") diff --git a/ext/digest/rmd160/extconf.rb b/ext/digest/rmd160/extconf.rb index cc361e3d2b..8d8cdee6ba 100644 --- a/ext/digest/rmd160/extconf.rb +++ b/ext/digest/rmd160/extconf.rb @@ -21,4 +21,7 @@ have_header("sys/cdefs.h") $preload = %w[digest] +if try_compile("", flag = " -Wno-deprecated-declarations") + $warnflags << flag +end create_makefile("digest/rmd160") diff --git a/ext/digest/sha1/extconf.rb b/ext/digest/sha1/extconf.rb index fa9945cd43..77a4b2b847 100644 --- a/ext/digest/sha1/extconf.rb +++ b/ext/digest/sha1/extconf.rb @@ -21,4 +21,7 @@ have_header("sys/cdefs.h") $preload = %w[digest] +if try_compile("", flag = " -Wno-deprecated-declarations") + $warnflags << flag +end create_makefile("digest/sha1") diff --git a/ext/digest/sha2/extconf.rb b/ext/digest/sha2/extconf.rb index a8f0198cf0..e0634245a9 100644 --- a/ext/digest/sha2/extconf.rb +++ b/ext/digest/sha2/extconf.rb @@ -26,5 +26,8 @@ have_header("sys/cdefs.h") $preload = %w[digest] if have_type("uint64_t", "defs.h", $defs.join(' ')) + if try_compile("", flag = " -Wno-deprecated-declarations") + $warnflags << flag + end create_makefile("digest/sha2") end -- cgit v1.2.3