diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-27 01:21:18 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-27 01:21:18 +0000 |
commit | 3419debfaff9add2dbc5eb6dce67b5e90e956e10 (patch) | |
tree | 59b1bda38a81e4f1f69bc1caa5eeda8df89c90ee /configure.in | |
parent | 072b3778194b26245421bf3322e8975b5039d55e (diff) | |
download | ruby-3419debfaff9add2dbc5eb6dce67b5e90e956e10.tar.gz ruby-3419debfaff9add2dbc5eb6dce67b5e90e956e10.tar.xz ruby-3419debfaff9add2dbc5eb6dce67b5e90e956e10.zip |
* configure.in (warnflags): check all flags if each are available.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 4fe7e3248..1fad64cfb 100644 --- a/configure.in +++ b/configure.in @@ -380,7 +380,8 @@ dnl compiler section { if test "$GCC:${warnflags+set}:no" = yes::no; then save_CFLAGS="$CFLAGS" - for wflag in -Wno-missing-field-initializers -Wshorten-64-to-32; do + for wflag in -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings \ + -Wno-missing-field-initializers -Wshorten-64-to-32; do CFLAGS="$CFLAGS $wflag" AC_MSG_CHECKING([whether $wflag is accepted]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], @@ -390,7 +391,6 @@ if test "$GCC:${warnflags+set}:no" = yes::no; then done CFLAGS="$save_CFLAGS" unset save_CFLAGS - warnflags="-Wall -Wno-unused-parameter -Wno-parentheses ${warnflags+$warnflags }-Wpointer-arith -Wwrite-strings" fi test -z "${ac_env_CFLAGS_set}" -a -n "${cflags+set}" && eval CFLAGS="\"$cflags $ARCH_FLAG\"" |