summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDennis Schafroth <dennis@schafroth.dk>2015-01-12 21:54:48 +0100
committerDennis Schafroth <dennis@schafroth.dk>2015-01-12 21:54:48 +0100
commit1a4195d57e08b7b9b3fee8d7b288b5d30e478572 (patch)
tree344435d997557f2d3aadf8531b8aff41bbc6183a
parent107b498c764018b0f100b384d347ab9ea961ad82 (diff)
Ignore all deprecated warnings for OPENSSL on DARWINbug-deprecated
-rw-r--r--rpc/rpc-transport/socket/src/socket.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/rpc/rpc-transport/socket/src/socket.c b/rpc/rpc-transport/socket/src/socket.c
index 2a6586b..f270a93 100644
--- a/rpc/rpc-transport/socket/src/socket.c
+++ b/rpc/rpc-transport/socket/src/socket.c
@@ -241,6 +241,11 @@ typedef struct socket_connect_error_state_ socket_connect_error_state_t;
static int socket_init (rpc_transport_t *this);
+#ifdef GF_DARWIN_HOST_OS
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
+
static void
ssl_dump_error_stack (const char *caller)
{
@@ -4042,3 +4047,7 @@ struct volume_options options[] = {
},
{ .key = {NULL} }
};
+
+#ifdef GF_DARWIN_HOST_OS
+#pragma GCC diagnostic pop
+#endif