ICC doesn't support -Werror= but ignore

It cause warnings when ruby remove error= on compiling ext/*.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2017-12-14 16:47:28 +00:00
Родитель 6d3f72e5be
Коммит dd25f5052f
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -404,8 +404,10 @@ AS_IF([test "$GCC" = yes], [
: ${optflags=-O3}
gcc_major=`echo =__GNUC__ | $CC -E -xc - | sed '/^=/!d;s///'`
gcc_minor=`echo =__GNUC_MINOR__ | $CC -E -xc - | sed '/^=/!d;s///'`
icc_version=`echo =__ICC | $CC -E -xc - | sed '/^=/!d;s///'`
test -n "$gcc_major" || gcc_major=0
test -n "$gcc_minor" || gcc_minor=0
test -n "$icc_version" || icc_version=0
# RUBY_APPEND_OPTIONS(XCFLAGS, ["-include ruby/config.h" "-include ruby/missing.h"])
], [
linker_flag=
@ -745,6 +747,10 @@ AS_IF([test "$GCC:${warnflags+set}:no" = yes::no], [
AS_IF([test $gcc_major -ge 5 -a $gcc_major -le 6], [
extra_warning="$extra_warning -Wno-maybe-uninitialized"
])
# ICC doesn't support -Werror=
AS_IF([test $icc_version -gt 0], [
particular_werror_flags=yes
])
for wflag in -Wno-unused-parameter -Wno-parentheses -Wno-long-long \
-diag-disable=2259 \
-Wno-missing-field-initializers \