comparison auto/cc/gcc @ 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 d9190c84e594
children c041f1e0655f
comparison
equal deleted inserted replaced
5713:9b0c92f22bbf 5714:80bd391c90d1
156 3.* | 4.* ) 156 3.* | 4.* )
157 # we have a lot of the unused function arguments 157 # we have a lot of the unused function arguments
158 CFLAGS="$CFLAGS -Wno-unused-parameter" 158 CFLAGS="$CFLAGS -Wno-unused-parameter"
159 # 4.2.1 shows the warning in wrong places 159 # 4.2.1 shows the warning in wrong places
160 #CFLAGS="$CFLAGS -Wunreachable-code" 160 #CFLAGS="$CFLAGS -Wunreachable-code"
161
162 # deprecated system OpenSSL library on OS X
163 if [ "$NGX_SYSTEM" = "Darwin" ]; then
164 CFLAGS="$CFLAGS -Wno-deprecated-declarations"
165 fi
161 ;; 166 ;;
162 167
163 *) 168 *)
164 # we have a lot of the unused function arguments 169 # we have a lot of the unused function arguments
165 CFLAGS="$CFLAGS -Wno-unused" 170 CFLAGS="$CFLAGS -Wno-unused"