mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
configure.in: no Werror
* configure.in (warnflags): disable -Werror by default unless development. [ruby-core:52131] [Bug #7830] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
391d691123
commit
4e5d0cee76
2 changed files with 15 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Feb 13 17:56:39 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* configure.in (warnflags): disable -Werror by default unless
|
||||
development. [ruby-core:52131] [Bug #7830]
|
||||
|
||||
Wed Feb 13 06:05:52 2013 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* lib/rubygems.rb: Return BINARY strings from Gem.gzip and Gem.gunzip.
|
||||
|
|
11
configure.in
11
configure.in
|
@ -172,6 +172,7 @@ RUBY_PROGRAM_VERSION=`sed -n 's/^#define RUBY_VERSION "\(.*\)"/\1/p' $srcdir/ver
|
|||
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
|
||||
|
@ -615,9 +616,17 @@ AC_DEFUN(RUBY_TRY_LDFLAGS, [
|
|||
save_LDFLAGS=
|
||||
])
|
||||
|
||||
AS_CASE([$RUBY_PATCHLEVEL], [-*],
|
||||
[particular_werror_flags=yes], [particular_werror_flags=no])
|
||||
AC_ARG_ENABLE(werror,
|
||||
AS_HELP_STRING([--disable-werror],
|
||||
[don't make warnings into errors
|
||||
even if a compiler support -Werror feature
|
||||
[[disabled by default unless development version]]]),
|
||||
[particular_werror_flags=$enableval])
|
||||
|
||||
rb_cv_warnflags="$warnflags"
|
||||
if test "$GCC:${warnflags+set}:no" = yes::no; then
|
||||
particular_werror_flags=yes
|
||||
for wflag in -Wno-unused-parameter -Wno-parentheses -Wno-long-long \
|
||||
-Wno-missing-field-initializers \
|
||||
-Wunused-variable \
|
||||
|
|
Loading…
Reference in a new issue