mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
build: do not disable deprecation warnings on macOS
this was for using openssl-0.9.8 included in macOS 10.7 - 10.12, but it is long since time you really should not use that openssl
This commit is contained in:
parent
9ca7a492f5
commit
b6497fa148
@ -325,9 +325,8 @@ if (${GNUC})
|
||||
endif()
|
||||
|
||||
if (APPLE)
|
||||
# Get rid of deprecated warnings for OpenSSL on OSX 10.7 and greater.
|
||||
# Clang on macOS emits warnings for each directory specified which isn't used
|
||||
add_compiler_flags(
|
||||
-Wno-error=deprecated-declarations
|
||||
-Qunused-arguments
|
||||
)
|
||||
endif()
|
||||
|
@ -900,9 +900,6 @@ if test x$enable_gcc_warnings != xno && test "$GCC" = "yes"; then
|
||||
dnl Clang on macOS emits warnings for each directory specified which
|
||||
dnl isn't "used", generating a lot of build noise.
|
||||
CFLAGS="$CFLAGS -Qunused-arguments"
|
||||
dnl macOS Lion started deprecating the system OpenSSL. Let's just
|
||||
dnl disable all deprecation warnings on macOS; but do so only for GCC.
|
||||
CFLAGS="$CFLAGS -Wno-deprecated-declarations"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user