diff options
author | Yang Tse <yangsita@gmail.com> | 2008-09-09 12:19:16 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-09-09 12:19:16 +0000 |
commit | 3072c5b8a127057aa922b7c51051bbb4a630b091 (patch) | |
tree | 753dba5420a524a554afbc9d5687f5fc80d88cce /configure.ac | |
parent | ac1ab03cb0f7477357e5417a719b6ddc73b5dd41 (diff) |
icc adjustments
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index 71464f43f..cad4a09d5 100644 --- a/configure.ac +++ b/configure.ac @@ -306,6 +306,12 @@ if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then CFLAGS="$CFLAGS -std=c89" dnl Disable use of ANSI C aliasing rules in optimizations CFLAGS="$CFLAGS -no-ansi-alias" + dnl Change some warnings into errors + dnl #140: too many arguments in function call + dnl #147: declaration is incompatible with 'previous one' + dnl #165: too few arguments in function call + dnl #266: function declared implicitly + CFLAGS="$CFLAGS -we 140,147,165,266" else AC_MSG_RESULT([no]) fi @@ -542,13 +548,6 @@ dnl The actual use of the USE_MANUAL variable is done much later in this dnl script to allow other actions to disable it as well. dnl ********************************************************************** -dnl check if this is the Intel ICC compiler, and if so make it stricter -dnl (convert warning 147 into an error) so that it properly can detect the -dnl gethostbyname_r() version -dnl ********************************************************************** -CURL_DETECT_ICC([CFLAGS="$CFLAGS -we 147"]) - -dnl ********************************************************************** dnl Checks for libraries. dnl ********************************************************************** |