Project

General

Profile

Backport #7830 » disable-werror.patch

nobu (Nobuyoshi Nakada), 02/12/2013 04:29 PM

View differences:

configure.in
AC_SUBST(RUBY_PROGRAM_VERSION)
RUBY_RELEASE_DATE=`sed -n 's/^#define RUBY_RELEASE_DATE "\(.*\)"/\1/p' $srcdir/version.h`
AC_SUBST(RUBY_RELEASE_DATE)
RUBY_PATCHLEVEL=`sed -n 's/^#define RUBY_PATCHLEVEL //p' $srcdir/version.h`
AC_DEFINE(CANONICALIZATION_FOR_MATHN)
dnl checks for alternative programs
AC_CANONICAL_BUILD
......
save_LDFLAGS=
])
AC_ARG_ENABLE(werror,
AS_HELP_STRING([--disable-werror],
[don't make warnings into errors even if a compiler support -Werror feature.]),
[particular_werror_flags=$enableval], [particular_werror_flags=])
rb_cv_warnflags="$warnflags"
if test "$GCC:${warnflags+set}:no" = yes::no; then
particular_werror_flags=yes
if test -z "${particular_werror_flags}"; then
AS_CASE($RUBY_PATCHLEVEL, [-*], [particular_werror_flags=yes], [particular_werror_flags=no])
fi
for wflag in -Wno-unused-parameter -Wno-parentheses -Wno-long-long \
-Wno-missing-field-initializers \
-Wunused-variable \
(2-2/2)