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:
Pierce Lopez 2020-07-04 15:55:22 -04:00
parent 9ca7a492f5
commit b6497fa148
2 changed files with 1 additions and 5 deletions

View File

@ -325,9 +325,8 @@ if (${GNUC})
endif() endif()
if (APPLE) 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( add_compiler_flags(
-Wno-error=deprecated-declarations
-Qunused-arguments -Qunused-arguments
) )
endif() endif()

View File

@ -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 Clang on macOS emits warnings for each directory specified which
dnl isn't "used", generating a lot of build noise. dnl isn't "used", generating a lot of build noise.
CFLAGS="$CFLAGS -Qunused-arguments" 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 esac
fi fi