Klaus Demo nginx / e9a7011
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). Maxim Dounin 8 years ago
3 changed file(s) with 10 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
8787 # we have a lot of unused function arguments
8888 CFLAGS="$CFLAGS -Wno-unused-parameter"
8989
90 # deprecated system OpenSSL library on OS X
91 if [ "$NGX_SYSTEM" = "Darwin" ]; then
92 CFLAGS="$CFLAGS -Wno-deprecated-declarations"
93 fi
94
9095 # stop on warning
9196 CFLAGS="$CFLAGS -Werror"
9297
157157 CFLAGS="$CFLAGS -Wno-unused-parameter"
158158 # 4.2.1 shows the warning in wrong places
159159 #CFLAGS="$CFLAGS -Wunreachable-code"
160
161 # deprecated system OpenSSL library on OS X
162 if [ "$NGX_SYSTEM" = "Darwin" ]; then
163 CFLAGS="$CFLAGS -Wno-deprecated-declarations"
164 fi
160165 ;;
161166
162167 *)
66
77 #ifndef _NGX_DARWIN_CONFIG_H_INCLUDED_
88 #define _NGX_DARWIN_CONFIG_H_INCLUDED_
9
10
11 #define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_0
129
1310
1411 #include <sys/types.h>