summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-09-22 18:42:48 +0000
committerYang Tse <yangsita@gmail.com>2008-09-22 18:42:48 +0000
commitc97f02af5f7acb2224a1e65f73b8d6d9cb85fe3d (patch)
tree7af7437c6efc7812beb3eaa117b534d0423c24bd
parenta36da1298594bd3e5b7b4e865ef3c8158b6a97d2 (diff)
downloadc-ares-c97f02af5f7acb2224a1e65f73b8d6d9cb85fe3d.tar.gz
c-ares-c97f02af5f7acb2224a1e65f73b8d6d9cb85fe3d.tar.bz2
c-ares-c97f02af5f7acb2224a1e65f73b8d6d9cb85fe3d.zip
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--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 18d2d22..e579ea0 100644
--- a/configure.ac
+++ b/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"