[前][次][番号順一覧][スレッド一覧]

ruby-changes:27169

From: nobu <ko1@a...>
Date: Wed, 13 Feb 2013 17:56:51 +0900 (JST)
Subject: [ruby-changes:27169] nobu:r39221 (trunk): configure.in: no Werror

nobu	2013-02-13 17:56:42 +0900 (Wed, 13 Feb 2013)

  New Revision: 39221

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39221

  Log:
    configure.in: no Werror
    
    * configure.in (warnflags): disable -Werror by default unless
      development.  [ruby-core:52131] [Bug #7830]

  Modified files:
    trunk/ChangeLog
    trunk/configure.in

Index: configure.in
===================================================================
--- configure.in	(revision 39220)
+++ configure.in	(revision 39221)
@@ -172,6 +172,7 @@ RUBY_PROGRAM_VERSION=`sed -n 's/^#define https://github.com/ruby/ruby/blob/trunk/configure.in#L172
 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, [ https://github.com/ruby/ruby/blob/trunk/configure.in#L616
     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 \
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39220)
+++ ChangeLog	(revision 39221)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Feb 13 17:56:39 2013  Nobuyoshi Nakada  <nobu@r...>
+
+	* configure.in (warnflags): disable -Werror by default unless
+	  development.  [ruby-core:52131] [Bug #7830]
+
 Wed Feb 13 06:05:52 2013  Eric Hodel  <drbrain@s...>
 
 	* lib/rubygems.rb:  Return BINARY strings from Gem.gzip and Gem.gunzip.

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]