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 /ares | |
parent | ac1ab03cb0f7477357e5417a719b6ddc73b5dd41 (diff) |
icc adjustments
Diffstat (limited to 'ares')
-rw-r--r-- | ares/acinclude.m4 | 1 | ||||
-rw-r--r-- | ares/configure.ac | 13 |
2 files changed, 7 insertions, 7 deletions
diff --git a/ares/acinclude.m4 b/ares/acinclude.m4 index 707ba7ee1..9cb54ae54 100644 --- a/ares/acinclude.m4 +++ b/ares/acinclude.m4 @@ -1892,6 +1892,7 @@ AC_DEFUN([CURL_CC_DEBUG_OPTS], dnl which we know and do on purpose. WARN="-wd279,269,981,1418,1419" + WARN="" if test "$gccnum" -gt "600"; then dnl icc 6.0 and older doesn't have the -Wall flag diff --git a/ares/configure.ac b/ares/configure.ac index fe8a7a7f0..9c5c426a0 100644 --- a/ares/configure.ac +++ b/ares/configure.ac @@ -168,13 +168,6 @@ AC_MSG_RESULT($need_no_undefined) AM_CONDITIONAL(NO_UNDEFINED, test x$need_no_undefined = xyes) 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 platform/compiler/architecture specific checks/flags dnl ********************************************************************** @@ -239,6 +232,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 |