[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Ignore deprecation warnings on OS X



commit 92bea30e28f62ea4c5d335420e2a328ff64598bc
Author: Sebastian Hahn <sebastian@xxxxxxxxxxxxxx>
Date:   Wed Aug 10 19:22:41 2011 +0200

    Ignore deprecation warnings on OS X
    
    Starting with Lion, Apple decided to deprecate the system openssl. We
    can start requiring users to install their own openssl once OS X doesn't
    ship with it anymore.
---
 changes/bug3643 |    4 ++++
 configure.in    |    9 +++++++++
 2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/changes/bug3643 b/changes/bug3643
new file mode 100644
index 0000000..86bd920
--- /dev/null
+++ b/changes/bug3643
@@ -0,0 +1,4 @@
+  o Minor bugfixes:
+    - Selectively disable deprecation warnings on OS X because Lion started
+      deprecating the shipped copy of openssl. Fixes bug 3643.
+
diff --git a/configure.in b/configure.in
index aa2233d..4e84298 100644
--- a/configure.in
+++ b/configure.in
@@ -906,6 +906,15 @@ else
   enable_gcc_warnings_advisory=no
 fi
 
+# OS X Lion started deprecating the system openssl. Let's just disable
+# all deprecation warnings on OS X.
+case "$host_os" in
+
+ darwin*)
+    CFLAGS="$CFLAGS -Wno-deprecated-declarations"
+    ;;
+esac
+
 # Add some more warnings which we use in development but not in the
 # released versions.  (Some relevant gcc versions can't handle these.)
 if test x$enable_gcc_warnings = xyes || test x$enable_gcc_warnings_advisory = xyes; then



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits