Get rid of deprecation warnings for OpenSSL on OSX 10.7+

This commit is contained in:
Joakim Söderberg 2013-12-17 13:28:23 +01:00
parent 67e5d74983
commit 69c3516be6
6 changed files with 19 additions and 0 deletions

View File

@ -88,6 +88,11 @@ if (CMAKE_COMPILER_IS_GNUCC)
endif()
endif()
if (APPLE)
# Get rid of deprecated warnings for OpenSSL on OSX 10.7 and greater.
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=deprecated-declarations")
endif()
# Winsock.
if(WIN32)
set(CMAKE_EXTRA_INCLUDE_FILES winsock2.h ws2tcpip.h)

View File

@ -24,6 +24,9 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
// Get rid of OSX 10.7 and greater deprecation warnings.
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#include "event2/event-config.h"
#include "evconfig-private.h"

View File

@ -10,6 +10,9 @@
Loosely based on le-proxy.c.
*/
// Get rid of OSX 10.7 and greater deprecation warnings.
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>

View File

@ -5,6 +5,9 @@
XXX It's a little ugly and should probably be cleaned up.
*/
// Get rid of OSX 10.7 and greater deprecation warnings.
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>

View File

@ -34,6 +34,8 @@ SOFTWARE.
*
*/
// Get rid of OSX 10.7 and greater deprecation warnings.
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#include <openssl/x509v3.h>
#include <openssl/ssl.h>

View File

@ -24,6 +24,9 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
// Get rid of OSX 10.7 and greater deprecation warnings.
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#ifdef _WIN32
#include <winsock2.h>
#include <windows.h>