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

ruby-changes:22774

From: nobu <ko1@a...>
Date: Mon, 27 Feb 2012 10:49:06 +0900 (JST)
Subject: [ruby-changes:22774] nobu:r34823 (trunk): * ext/openssl/extconf.rb: suppress useless deprecation warnings

nobu	2012-02-27 10:48:52 +0900 (Mon, 27 Feb 2012)

  New Revision: 34823

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34823

  Log:
    * ext/openssl/extconf.rb: suppress useless deprecation warnings
      from OpenSSL added by Apple.

  Modified files:
    trunk/ChangeLog
    trunk/ext/digest/md5/extconf.rb
    trunk/ext/digest/rmd160/extconf.rb
    trunk/ext/digest/sha1/extconf.rb
    trunk/ext/digest/sha2/extconf.rb
    trunk/ext/openssl/extconf.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 34822)
+++ ChangeLog	(revision 34823)
@@ -1,3 +1,8 @@
+Mon Feb 27 10:48:49 2012  Nobuyoshi Nakada  <nobu@r...>
+
+	* ext/openssl/extconf.rb: suppress useless deprecation warnings
+	  from OpenSSL added by Apple.
+
 Sun Feb 26 23:29:49 2012  NARUSE, Yui  <naruse@r...>
 
 	* regparse.c (add_code_range_to_buf0): wrong condition of duplicated
Index: ext/digest/md5/extconf.rb
===================================================================
--- ext/digest/md5/extconf.rb	(revision 34822)
+++ ext/digest/md5/extconf.rb	(revision 34823)
@@ -22,4 +22,7 @@
 
 $preload = %w[digest]
 
+if try_compile("", flag = " -Wno-deprecated-declarations")
+  $warnflags << flag
+end
 create_makefile("digest/md5")
Index: ext/digest/rmd160/extconf.rb
===================================================================
--- ext/digest/rmd160/extconf.rb	(revision 34822)
+++ ext/digest/rmd160/extconf.rb	(revision 34823)
@@ -21,4 +21,7 @@
 
 $preload = %w[digest]
 
+if try_compile("", flag = " -Wno-deprecated-declarations")
+  $warnflags << flag
+end
 create_makefile("digest/rmd160")
Index: ext/digest/sha1/extconf.rb
===================================================================
--- ext/digest/sha1/extconf.rb	(revision 34822)
+++ ext/digest/sha1/extconf.rb	(revision 34823)
@@ -21,4 +21,7 @@
 
 $preload = %w[digest]
 
+if try_compile("", flag = " -Wno-deprecated-declarations")
+  $warnflags << flag
+end
 create_makefile("digest/sha1")
Index: ext/digest/sha2/extconf.rb
===================================================================
--- ext/digest/sha2/extconf.rb	(revision 34822)
+++ ext/digest/sha2/extconf.rb	(revision 34823)
@@ -26,5 +26,8 @@
 $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
Index: ext/openssl/extconf.rb
===================================================================
--- ext/openssl/extconf.rb	(revision 34822)
+++ ext/openssl/extconf.rb	(revision 34823)
@@ -146,6 +146,9 @@
 
 message "=== Checking done. ===\n"
 
+if try_compile("", flag = " -Wno-deprecated-declarations")
+  $warnflags << flag
+end
 create_header
 create_makefile("openssl")
 message "Done.\n"

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

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