ruby-changes:53589
From: nobu <ko1@a...>
Date: Mon, 19 Nov 2018 19:15:28 +0900 (JST)
Subject: [ruby-changes:53589] nobu:r65805 (trunk): configure.ac: respect extra_warnflags if given
nobu 2018-11-19 19:15:20 +0900 (Mon, 19 Nov 2018) New Revision: 65805 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65805 Log: configure.ac: respect extra_warnflags if given Modified files: trunk/configure.ac Index: configure.ac =================================================================== --- configure.ac (revision 65804) +++ configure.ac (revision 65805) @@ -473,11 +473,10 @@ AC_ARG_ENABLE(werror, https://github.com/ruby/ruby/blob/trunk/configure.ac#L473 [particular_werror_flags=$enableval]) rb_cv_warnflags="$warnflags" -AS_IF([test "$GCC:${warnflags+set}:no" = yes::no], [ +AS_CASE(["$GCC:${warnflags+set}:${extra_warnflags:+set}:"], +[yes::*|yes:*:set:], [# GCC && (!warnflags || extra_warnflags) AS_IF([test $gcc_major -ge 4], [ - extra_warning=-Werror=extra-tokens - ], [ - extra_warning= + extra_warning="$extra_warning -Werror=extra-tokens" ]) AS_IF([test $gcc_major -ge 5 -a $gcc_major -le 6], [ extra_warning="$extra_warning -Wno-maybe-uninitialized" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/