mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-08 11:53:00 -04:00
Get rid of deprecation warnings for OpenSSL on OSX 10.7+
This commit is contained in:
parent
67e5d74983
commit
69c3516be6
@ -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)
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user