From b6497fa148ed78fcd4a8847891c80cfb9ed17c42 Mon Sep 17 00:00:00 2001 From: Pierce Lopez Date: Sat, 4 Jul 2020 15:55:22 -0400 Subject: [PATCH] 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 --- CMakeLists.txt | 3 +-- configure.ac | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) 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 -- 2.50.1