Fix Intel compiler deprecated options (#485)

Options `-we ###` and `-wd ###` should not include a whitespace. They are also deprecated and `-diag-error` and `-diag-disable` are their replacements.

Intel compiler 2021.6 is not able to be used in configure without the proposed patch.

Fix By: Stephen Sachs (@stephenmsachs)
pull/494/head
Stephen Sachs 2 years ago committed by GitHub
parent a1675ba107
commit 057c16a062
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      m4/cares-compilers.m4

@ -609,12 +609,12 @@ AC_DEFUN([CARES_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 -we 140,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 #1469: "cc" clobber ignored
tmp_CPPFLAGS="$tmp_CPPFLAGS -wd 279,981,1469"
tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-disable 279,981,1469"
;;
#
INTEL_WINDOWS_C)

Loading…
Cancel
Save