1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* configure.in (warnflags): check all flags if each are available.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-09-27 01:21:18 +00:00
parent 6bf6f3d4c4
commit 810775bb20
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Sun Sep 27 10:21:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (warnflags): check all flags if each are available.
Sun Sep 27 05:35:17 2009 NARUSE, Yui <naruse@ruby-lang.org> Sun Sep 27 05:35:17 2009 NARUSE, Yui <naruse@ruby-lang.org>
* ext/json/ext/generator/generator.c: Documention patch by okkez. * ext/json/ext/generator/generator.c: Documention patch by okkez.

View file

@ -380,7 +380,8 @@ dnl compiler section {
if test "$GCC:${warnflags+set}:no" = yes::no; then if test "$GCC:${warnflags+set}:no" = yes::no; then
save_CFLAGS="$CFLAGS" 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" CFLAGS="$CFLAGS $wflag"
AC_MSG_CHECKING([whether $wflag is accepted]) AC_MSG_CHECKING([whether $wflag is accepted])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
@ -390,7 +391,6 @@ if test "$GCC:${warnflags+set}:no" = yes::no; then
done done
CFLAGS="$save_CFLAGS" CFLAGS="$save_CFLAGS"
unset save_CFLAGS unset save_CFLAGS
warnflags="-Wall -Wno-unused-parameter -Wno-parentheses ${warnflags+$warnflags }-Wpointer-arith -Wwrite-strings"
fi fi
test -z "${ac_env_CFLAGS_set}" -a -n "${cflags+set}" && eval CFLAGS="\"$cflags $ARCH_FLAG\"" test -z "${ac_env_CFLAGS_set}" -a -n "${cflags+set}" && eval CFLAGS="\"$cflags $ARCH_FLAG\""