comparison auto/cc/clang @ 5714:80bd391c90d1

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).
author Maxim Dounin <mdounin@mdounin.ru>
date Wed, 28 May 2014 17:41:44 +0400
parents c86dd32573c0
children 9eefb38f0005
comparison
equal deleted inserted replaced
5713:9b0c92f22bbf 5714:80bd391c90d1
86 #CFLAGS="$CFLAGS -Wmissing-prototypes" 86 #CFLAGS="$CFLAGS -Wmissing-prototypes"
87 87
88 # we have a lot of unused function arguments 88 # we have a lot of unused function arguments
89 CFLAGS="$CFLAGS -Wno-unused-parameter" 89 CFLAGS="$CFLAGS -Wno-unused-parameter"
90 90
91 # deprecated system OpenSSL library on OS X
92 if [ "$NGX_SYSTEM" = "Darwin" ]; then
93 CFLAGS="$CFLAGS -Wno-deprecated-declarations"
94 fi
95
91 # stop on warning 96 # stop on warning
92 CFLAGS="$CFLAGS -Werror" 97 CFLAGS="$CFLAGS -Werror"
93 98
94 # debug 99 # debug
95 CFLAGS="$CFLAGS -g" 100 CFLAGS="$CFLAGS -g"