summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-07-20 13:22:09 +0200
committerDaniel Stenberg <daniel@haxx.se>2022-07-23 13:38:24 +0200
commit3f5b66c13d464eedc0fec281106cd20546e4ce49 (patch)
treec0f0f6e12912ae5a405c285039a74be9e7317311 /m4
parentb35a49a549fdafa5ece2c7027533341e0a1b45a9 (diff)
downloadcurl-3f5b66c13d464eedc0fec281106cd20546e4ce49.tar.gz
curl-compilers.m4: make icc use -diag* options and disable two warnings
-wd and -we are deprecated and are now -diag-disable and -diag-error Disable warning 1024 and 2259 Closes #9179
Diffstat (limited to 'm4')
-rw-r--r--m4/curl-compilers.m46
1 files changed, 4 insertions, 2 deletions
diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4
index 8d812b5e5..ddd44acb5 100644
--- a/m4/curl-compilers.m4
+++ b/m4/curl-compilers.m4
@@ -567,12 +567,14 @@ AC_DEFUN([CURL_SET_COMPILER_BASIC_OPTS], [
dnl #147: declaration is incompatible with 'previous one'
dnl #165: too few arguments in function call
dnl #266: function declared implicitly
- tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
+ tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-error 140,147,165,266"
dnl Disable some remarks
dnl #279: controlling expression is constant
dnl #981: operands are evaluated in unspecified order
+ dnl #1025: zero extending result of unary operation
dnl #1469: "cc" clobber ignored
- tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
+ dnl #2259: non-pointer conversion from X to Y may lose significant bits
+ tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-disable 279,981,1025,1469,2259"
;;
#
INTEL_WINDOWS_C)