ruby-changes:49145
From: naruse <ko1@a...>
Date: Fri, 15 Dec 2017 01:47:33 +0900 (JST)
Subject: [ruby-changes:49145] naruse:r61261 (trunk): ICC doesn't support -Werror= but ignore
naruse 2017-12-15 01:47:28 +0900 (Fri, 15 Dec 2017) New Revision: 61261 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61261 Log: ICC doesn't support -Werror= but ignore It cause warnings when ruby remove error= on compiling ext/*. Modified files: trunk/configure.ac Index: configure.ac =================================================================== --- configure.ac (revision 61260) +++ configure.ac (revision 61261) @@ -404,8 +404,10 @@ AS_IF([test "$GCC" = yes], [ https://github.com/ruby/ruby/blob/trunk/configure.ac#L404 : ${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" = https://github.com/ruby/ruby/blob/trunk/configure.ac#L747 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 \ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/