diff options
author | Alan Antonuk <alan.antonuk@gmail.com> | 2014-08-25 21:49:04 -0700 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2014-08-25 21:49:04 -0700 |
commit | d60c28ca0359efdc382ccc58853f925c97bcd4fd (patch) | |
tree | 55feea05c91c9d6144f7315eae269361d7f4e96a /librabbitmq | |
parent | 5790ec76336955c8dd3ff4e94d36389c562a351b (diff) | |
download | rabbitmq-c-github-ask-d60c28ca0359efdc382ccc58853f925c97bcd4fd.tar.gz |
Suppress OpenSSL deprecation warnings on OSX
Diffstat (limited to 'librabbitmq')
-rw-r--r-- | librabbitmq/CMakeLists.txt | 5 | ||||
-rw-r--r-- | librabbitmq/amqp_openssl.c | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/librabbitmq/CMakeLists.txt b/librabbitmq/CMakeLists.txt index d3623b3..2c3032e 100644 --- a/librabbitmq/CMakeLists.txt +++ b/librabbitmq/CMakeLists.txt @@ -88,6 +88,11 @@ if (ENABLE_SSL_SUPPORT) ) include_directories(${OPENSSL_INCLUDE_DIR}) set(AMQP_SSL_LIBS ${OPENSSL_LIBRARIES}) + if (APPLE) + # Apple has deprecated OpenSSL in 10.7+. This disables that warning. + set_source_files_properties(${AMQP_SSL_SRCS} + PROPERTIES COMPILE_FLAGS -Wno-deprecated-declarations) + endif() elseif (SSL_ENGINE STREQUAL "cyaSSL") set(AMQP_SSL_SRCS ${AMQP_SSL_SOCKET_H_PATH} amqp_cyassl.c) diff --git a/librabbitmq/amqp_openssl.c b/librabbitmq/amqp_openssl.c index 43018c9..9066d23 100644 --- a/librabbitmq/amqp_openssl.c +++ b/librabbitmq/amqp_openssl.c @@ -25,10 +25,6 @@ #include "config.h" #endif -#if defined(__APPLE__) && defined(__MACH__) -# define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_6 -#endif - #include "amqp_ssl_socket.h" #include "amqp_socket.h" #include "amqp_hostcheck.h" |