• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:strict +full:- +full:warnings

21 # SPDX-License-Identifier: curl
30 dnl -------------------------------------------------
61 *** disable generation of debug info, optimization options or warnings.
67 *** mailing list: https://lists.haxx.selistinfo/curl-library/
75 dnl -------------------------------------------------
87 dnl IBM's almost-compatible clang version
95 fullclangver=`$CC -v 2>&1 | grep version`
101 …clangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \(@<:@0-9@:>@*\.@<:@0-9@:>@*\).*)/\1…
102 if test -z "$clangver"; then
103 clangver=`echo $fullclangver | "$SED" 's/.*version \(@<:@0-9@:>@*\.@<:@0-9@:>@*\).*/\1/'`
108 clangvhi=`echo $clangver | cut -d . -f1`
109 clangvlo=`echo $clangver | cut -d . -f2`
113 if test "$compiler_num" -ge '1300'; then compiler_num='1200'
114 elif test "$compiler_num" -ge '1205'; then compiler_num='1101'
115 elif test "$compiler_num" -ge '1204'; then compiler_num='1000'
116 elif test "$compiler_num" -ge '1107'; then compiler_num='900'
117 elif test "$compiler_num" -ge '1103'; then compiler_num='800'
118 elif test "$compiler_num" -ge '1003'; then compiler_num='700'
119 elif test "$compiler_num" -ge '1001'; then compiler_num='600'
120 elif test "$compiler_num" -ge '904'; then compiler_num='500'
121 elif test "$compiler_num" -ge '902'; then compiler_num='400'
122 elif test "$compiler_num" -ge '803'; then compiler_num='309'
123 elif test "$compiler_num" -ge '703'; then compiler_num='308'
128 flags_dbg_yes="-g"
129 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
130 flags_opt_yes="-O2"
131 flags_opt_off="-O0"
139 dnl -------------------------------------------------
150 flags_dbg_yes="-g2"
151 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
152 flags_opt_yes="-O1"
153 flags_opt_off="-O0"
161 dnl -------------------------------------------------
183 # strip '-suffix' parts, e.g. Ubuntu Windows cross-gcc returns '10-win32'
184 gccver=`$CC -dumpversion | sed -E 's/-.+$//'`
185 gccvhi=`echo $gccver | cut -d . -f1`
186 if echo $gccver | grep -F '.' >/dev/null; then
187 gccvlo=`echo $gccver | cut -d . -f2`
193 flags_dbg_yes="-g"
194 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
195 flags_opt_yes="-O2"
196 flags_opt_off="-O0"
204 dnl -------------------------------------------------
205 dnl Verify if compiler being used is HP-UX C.
208 AC_MSG_CHECKING([if compiler is HP-UX C])
213 flags_dbg_yes="-g"
214 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
224 dnl -------------------------------------------------
233 flags_dbg_yes="-g"
234 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
235 flags_opt_all="$flags_opt_all -qnooptimize"
236 flags_opt_all="$flags_opt_all -qoptimize=0"
237 flags_opt_all="$flags_opt_all -qoptimize=1"
238 flags_opt_all="$flags_opt_all -qoptimize=2"
239 flags_opt_all="$flags_opt_all -qoptimize=3"
240 flags_opt_all="$flags_opt_all -qoptimize=4"
241 flags_opt_all="$flags_opt_all -qoptimize=5"
242 flags_opt_yes="-O2"
243 flags_opt_off="-qnooptimize"
252 dnl -------------------------------------------------
267 flags_dbg_yes="-g"
268 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
269 flags_opt_yes="-O2"
270 flags_opt_off="-O0"
273 flags_dbg_yes="/Zi /Oy-"
274 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
285 dnl -------------------------------------------------
298 flags_dbg_yes="-g"
299 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
300 flags_opt_yes="-O2"
301 flags_opt_off="-O0"
309 dnl -------------------------------------------------
323 flags_dbg_yes="-g"
324 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
325 flags_opt_yes="-O2"
326 flags_opt_off="-O0"
334 dnl -------------------------------------------------
343 flags_dbg_yes="-g"
344 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
345 flags_opt_yes="-xO2"
354 dnl -------------------------------------------------
363 flags_dbg_yes="-g"
373 dnl -------------------------------------------------
376 dnl done to prevent GNUC from generating warnings on
378 dnl GNUC versions these warnings are not silenced.
383 AC_MSG_CHECKING([convert -I options to -isystem])
391 -I*)
397 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
398 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
406 -I*)
412 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
413 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
423 dnl CURL_COMPILER_WORKS_IFELSE ([ACTION-IF-WORKS], [ACTION-IF-NOT-WORKS])
424 dnl -------------------------------------------------
443 sed 's/^/cc-fail: /' conftest.err >&6
459 sed 's/^/link-fail: /' conftest.err >&6
463 dnl only do runtime verification when not cross-compiling
480 echo "run-fail: test program exited with status $ac_status" >&6
494 dnl -------------------------------------------------
496 dnl depend on configure's debug, optimize or warnings
514 dnl Disable warnings for unused arguments, otherwise clang will
515 dnl warn about compile-time arguments used during link-time, like
516 dnl -O and -g and -pedantic.
517 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
522 dnl Select strict ANSI C compiler mode
523 tmp_CFLAGS="$tmp_CFLAGS -std1"
525 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
526 dnl Generate warnings for missing function prototypes
527 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
528 dnl Change some warnings into fatal errors
529 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
534 dnl turn implicit-function-declaration warning into error,
536 if test "$compiler_num" -ge "295"; then
537 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
543 dnl Disallow run-time dereferencing of null pointers
544 tmp_CFLAGS="$tmp_CFLAGS -z"
553 dnl Ensure that compiler optimizations are always thread-safe.
554 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
555 dnl Disable type based strict aliasing optimizations, using worst
559 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
562 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
569 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
570 dnl Change some warnings into errors
575 tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-error 140,147,165,266"
581 dnl #2259: non-pointer conversion from X to Y may lose significant bits
582 tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-disable 279,981,1025,1469,2259"
620 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
643 dnl -------------------------------------------------
680 dnl -------------------------------------------------
762 dnl -------------------------------------------------
764 dnl configure's warnings given option.
783 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
785 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [pointer-arith write-strings])
787 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [inline nested-externs])
788 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [missing-declarations])
789 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [missing-prototypes])
790 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
791 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [float-equal])
792 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [sign-compare])
793 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar"
795 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
796 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [endif-labels strict-prototypes])
797 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [declaration-after-statement])
798 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [cast-align])
799 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
800 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [shorten-64-to-32])
803 if test "$compiler_num" -ge "101"; then
808 if test "$compiler_num" -ge "207"; then
811 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [bad-function-cast])
813 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [div-by-zero format-security])
814 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [empty-body])
815 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [missing-field-initializers])
816 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [missing-noreturn])
817 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [old-style-definition])
818 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [redundant-decls])
819 …# CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [switch-enum]) # Not used because this basically d…
820 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [type-limits])
821 # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused-macros]) # Not practical
822 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unreachable-code unused-parameter])
826 if test "$compiler_num" -ge "208"; then
827 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [ignored-qualifiers])
832 if test "$compiler_num" -ge "209"; then
833 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [sign-conversion])
834 tmp_CFLAGS="$tmp_CFLAGS -Wno-error=sign-conversion" # FIXME
835 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [shift-sign-overflow])
840 if test "$compiler_num" -ge "300"; then
841 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [language-extension-token])
842 tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
846 if test "$compiler_num" -ge "302"; then
847 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [enum-conversion])
848 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [sometimes-uninitialized])
851 dnl skip missing-variable-declarations warnings for cygwin and
855 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [missing-variable-declarations])
861 if test "$compiler_num" -ge "304"; then
862 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [header-guard])
863 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused-const-variable])
867 if test "$compiler_num" -ge "305"; then
869 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unreachable-code-break])
873 if test "$compiler_num" -ge "306"; then
874 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [double-promotion])
878 if test "$compiler_num" -ge "309"; then
882 if test "$compiler_num" -lt "400"; then
883 tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
887 if test "$compiler_num" -ge "700"; then
888 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [assign-enum])
889 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [extra-semi-stmt])
892 if test "$compiler_num" -ge "1000"; then
893 …tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough" # we have silencing markup for clang 10.0 and abo…
896 dnl Disable pointer to bool conversion warnings since they cause
897 dnl lib/securetransp.c cause several warnings for checks we want.
898 dnl This option should be placed after -Wconversion.
899 tmp_CFLAGS="$tmp_CFLAGS -Wno-pointer-bool-conversion"
906 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
914 dnl Do not enable -pedantic when cross-compiling with a gcc older
915 dnl than 3.0, to avoid warnings from third party system headers.
917 test "$compiler_num" -ge "300"; then
918 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
923 tmp_CFLAGS="$tmp_CFLAGS -W"
926 if test "$compiler_num" -ge "104"; then
927 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [pointer-arith write-strings])
928 dnl If not cross-compiling with a gcc older than 3.0
930 test "$compiler_num" -ge "300"; then
936 if test "$compiler_num" -ge "207"; then
937 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [inline nested-externs])
938 dnl If not cross-compiling with a gcc older than 3.0
940 test "$compiler_num" -ge "300"; then
941 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [missing-declarations])
942 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [missing-prototypes])
947 if test "$compiler_num" -ge "295"; then
948 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
949 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [bad-function-cast])
953 if test "$compiler_num" -ge "296"; then
954 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [float-equal])
955 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar"
956 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [sign-compare])
957 dnl -Wundef used only if gcc is 2.96 or later since we get
964 if test "$compiler_num" -ge "297"; then
965 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
969 if test "$compiler_num" -ge "300"; then
970 dnl -Wunreachable-code seems totally unreliable on my gcc 3.3.2 on
971 dnl on i686-Linux as it gives us heaps with false positives.
978 if test "$compiler_num" -ge "303"; then
979 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [endif-labels strict-prototypes])
983 if test "$compiler_num" -ge "304"; then
984 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [declaration-after-statement])
985 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [old-style-definition])
989 if test "$compiler_num" -ge "400"; then
990 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
994 if test "$compiler_num" -ge "401"; then
996 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [div-by-zero format-security])
997 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [missing-field-initializers])
999 *-*-msys*)
1002 …CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [missing-noreturn]) # Seen to clash with libtool-generat…
1005 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unreachable-code unused-parameter])
1008 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [redundant-decls])
1009 …# CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [switch-enum]) # Not used because this basically d…
1010 # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused-macros]) # Not practical
1014 if test "$compiler_num" -ge "402"; then
1015 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [cast-align])
1019 if test "$compiler_num" -ge "403"; then
1021 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [type-limits old-style-declaration])
1022 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [missing-parameter-type empty-body])
1023 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [clobbered ignored-qualifiers])
1025 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [sign-conversion])
1026 tmp_CFLAGS="$tmp_CFLAGS -Wno-error=sign-conversion" # FIXME
1028 dnl required for -Warray-bounds, included in -Wall
1029 tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
1033 if test "$compiler_num" -ge "405"; then
1036 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
1041 if test "$compiler_num" -ge "406"; then
1042 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [double-promotion])
1046 if test "$compiler_num" -ge "408"; then
1047 tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
1051 if test "$compiler_num" -ge "500"; then
1052 tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
1056 if test "$compiler_num" -ge "600"; then
1057 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [shift-negative-value])
1058 tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
1059 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [null-dereference])
1060 tmp_CFLAGS="$tmp_CFLAGS -fdelete-null-pointer-checks"
1061 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [duplicated-cond])
1062 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused-const-variable])
1066 if test "$compiler_num" -ge "700"; then
1067 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [duplicated-branches])
1069 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [alloc-zero])
1070 tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
1071 tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
1072 tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough"
1076 if test "$compiler_num" -ge "1000"; then
1077 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [arith-conversion])
1078 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [enum-conversion])
1083 dnl Do not issue warnings for code in system include paths.
1084 if test "$compiler_num" -ge "300"; then
1085 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
1087 dnl When cross-compiling with a gcc older than 3.0, disable
1088 dnl some warnings triggered on third party system headers.
1090 if test "$compiler_num" -ge "104"; then
1092 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
1094 if test "$compiler_num" -ge "207"; then
1096 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
1097 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
1106 dnl Issue all warnings
1120 if test "$compiler_num" -gt "600"; then
1121 dnl Show errors, warnings, and remarks
1122 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
1123 dnl Perform extra compile-time code checking
1124 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
1126 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
1127 dnl Show warnings relative to deprecated features
1128 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
1129 dnl Enable warnings for missing prototypes
1130 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
1131 dnl Enable warnings for 64-bit portability issues
1132 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
1133 dnl Enable warnings for questionable pointer arithmetic
1134 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
1136 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
1138 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
1140 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
1142 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
1146 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
1148 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
1149 dnl Value-safe optimizations on floating-point data
1150 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
1162 dnl Perform stricter semantic and lint-like checks
1163 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
1170 dnl Perform stricter semantic and lint-like checks
1171 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
1174 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
1181 dnl Perform stricter semantic and lint-like checks
1182 tmp_CFLAGS="$tmp_CFLAGS -v"
1189 dnl Activate all warnings
1192 CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [write-strings])
1203 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
1204 AC_MSG_CHECKING([if compiler accepts strict warning options])
1226 dnl -------------------------------------------------
1235 if test -z "$_sqz_result"; then
1248 dnl -------------------------------------------------
1250 dnl option, and other additional configure pre-requisites.
1294 dnl -------------------------------------------------
1316 dnl -------------------------------------------------
1327 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
1341 dnl -------------------------------------------------
1344 dnl result, as a compilation-time condition inside the
1359 typedef char good_t1[sizeof(myfunc().mi) == sizeof(int) ? 1 : -1 ];
1360 typedef char good_t2[sizeof(myfunc().mc) == sizeof(char) ? 1 : -1 ];
1369 sed 's/^/cc-src: /' conftest.$ac_ext >&6
1370 sed 's/^/cc-err: /' conftest.err >&6
1381 typedef char bad_t1[sizeof(myfunc().mi) != sizeof(int) ? 1 : -1 ];
1382 typedef char bad_t2[sizeof(myfunc().mc) != sizeof(char) ? 1 : -1 ];
1403 dnl -------------------------------------------------
1419 dnl All versions of clang support -fvisibility=
1421 tmp_CFLAGS="-fvisibility=hidden"
1426 if test "$compiler_num" -ge "304"; then
1427 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
1429 tmp_CFLAGS="-fvisibility=hidden"
1436 if test "$compiler_num" -ge "900"; then
1437 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
1439 CFLAGS="$CFLAGS -fvisibility=hidden"
1448 tmp_CFLAGS="-fvisibility=hidden"
1456 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
1458 tmp_CFLAGS="-xldscope=hidden"
1485 if test -f conftest.err; then
1487 if test "$?" -eq "0"; then
1494 sed 's/^/cc-src: /' conftest.$ac_ext >&6
1495 sed 's/^/cc-err: /' conftest.err >&6
1511 dnl -------------------------------------------------
1547 dnl -------------------------------------------------
1567 dnl [ACTION-IF-MATCH], [ACTION-IF-NOT-MATCH])
1568 dnl -------------------------------------------------
1584 dnl -------------------------------------------------
1608 dnl CURL_ADD_COMPILER_WARNINGS (WARNING-LIST, NEW-WARNINGS)
1609 dnl -------------------------------------------------------
1610 dnl Contents of variable WARNING-LIST and NEW-WARNINGS are
1612 dnl Add each compiler warning from NEW-WARNINGS that has not
1613 dnl been disabled via CFLAGS to WARNING-LIST.
1619 CURL_VAR_MATCH(CFLAGS, [-Wno-$warning -W$warning])
1621 ac_var_added_warnings="$ac_var_added_warnings -W$warning"