diff options
author | Yang Tse <yangsita@gmail.com> | 2008-09-22 18:42:48 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-09-22 18:42:48 +0000 |
commit | 188311863aac80346ac2ad23470c572fd0274520 (patch) | |
tree | 144cd8291b9bc17b2e8aef252304ef7974798f1c | |
parent | 0eb083e979eb62ce9d5446e927eb8e7682105f10 (diff) |
icc adjustments for icc 9.0 and prior versions:
Disable remark #279: controlling expression is constant
Remark triggered mostly on va_arg() and FD_ZERO() macros.
-rw-r--r-- | ares/configure.ac | 4 | ||||
-rw-r--r-- | configure.ac | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/ares/configure.ac b/ares/configure.ac index 18d2d2221..e579ea052 100644 --- a/ares/configure.ac +++ b/ares/configure.ac @@ -242,8 +242,12 @@ if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then dnl #266: function declared implicitly CPPFLAGS="$CPPFLAGS -we 140,147,165,266" dnl Disable some remarks + dnl #279: controlling expression is constant dnl #981: operands are evaluated in unspecified order dnl #1469: "cc" clobber ignored + if test "$curl_cv_def___INTEL_COMPILER" -lt "910"; then + CPPFLAGS="$CPPFLAGS -wd 279" + fi CPPFLAGS="$CPPFLAGS -wd 981,1469" dnl Disable use of ANSI C aliasing rules in optimizations CFLAGS="$CFLAGS -no-ansi-alias" diff --git a/configure.ac b/configure.ac index ddde3b7a1..6d4d69347 100644 --- a/configure.ac +++ b/configure.ac @@ -316,8 +316,12 @@ if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then dnl #266: function declared implicitly CPPFLAGS="$CPPFLAGS -we 140,147,165,266" dnl Disable some remarks + dnl #279: controlling expression is constant dnl #981: operands are evaluated in unspecified order dnl #1469: "cc" clobber ignored + if test "$curl_cv_def___INTEL_COMPILER" -lt "910"; then + CPPFLAGS="$CPPFLAGS -wd 279" + fi CPPFLAGS="$CPPFLAGS -wd 981,1469" dnl Disable use of ANSI C aliasing rules in optimizations CFLAGS="$CFLAGS -no-ansi-alias" |