1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

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.
This commit is contained in:
Yang Tse 2008-09-22 18:42:48 +00:00
parent 0eb083e979
commit 188311863a
2 changed files with 8 additions and 0 deletions

View File

@ -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"

View File

@ -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"