From: Pierce Lopez Date: Sat, 4 Jul 2020 19:55:22 +0000 (-0400) Subject: build: do not disable deprecation warnings on macOS X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6497fa148ed78fcd4a8847891c80cfb9ed17c42;p=libevent 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 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index a76c714f..960e2e1e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() diff --git a/configure.ac b/configure.ac index 1b647ed8..fb813306 100644 --- a/configure.ac +++ b/configure.ac @@ -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