From e9a70114a2b91a5d60f6205739d4207575e8495c Mon Sep 17 00:00:00 2001 From: Maxim Dounin Date: Wed, 28 May 2014 17:41:44 +0400 Subject: Configure: added -Wno-deprecated-declarations on OS X. Previous workaround to avoid warnings on OS X due to deprecated system OpenSSL library (introduced in a3870ea96ccd) no longer works, as the MAC_OS_X_VERSION_MIN_REQUIRED macro is ignored on OS X 10.9 if a compiler used supports __attribute__(availability). --- auto/cc/gcc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'auto/cc/gcc') diff --git a/auto/cc/gcc b/auto/cc/gcc index c27d857e3..727f11e1d 100644 --- a/auto/cc/gcc +++ b/auto/cc/gcc @@ -158,6 +158,11 @@ case "$NGX_GCC_VER" in CFLAGS="$CFLAGS -Wno-unused-parameter" # 4.2.1 shows the warning in wrong places #CFLAGS="$CFLAGS -Wunreachable-code" + + # deprecated system OpenSSL library on OS X + if [ "$NGX_SYSTEM" = "Darwin" ]; then + CFLAGS="$CFLAGS -Wno-deprecated-declarations" + fi ;; *) -- cgit