mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
configure.ac: respect extra_warnflags if given
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7213568733
commit
33fed2d09a
1 changed files with 3 additions and 4 deletions
|
@ -473,11 +473,10 @@ AC_ARG_ENABLE(werror,
|
|||
[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"
|
||||
|
|
Loading…
Reference in a new issue