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

ruby-changes:18176

From: naruse <ko1@a...>
Date: Tue, 14 Dec 2010 11:33:13 +0900 (JST)
Subject: [ruby-changes:18176] Ruby:r30197 (trunk): * configure.in: Add -Werror=declaration-after-statement to default

naruse	2010-12-14 11:33:04 +0900 (Tue, 14 Dec 2010)

  New Revision: 30197

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

  Log:
    * configure.in: Add -Werror=declaration-after-statement to default
      warning flag. If you are using GCC, this flag is useful to
      prevent breaking VC build.

  Modified files:
    trunk/ChangeLog
    trunk/configure.in

Index: configure.in
===================================================================
--- configure.in	(revision 30196)
+++ configure.in	(revision 30197)
@@ -445,6 +445,7 @@
 
 if test "$GCC:${warnflags+set}:no" = yes::no; then
     for wflag in -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings \
+		 -Werror=declaration-after-statement \
 		 -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long; do
 	RUBY_TRY_CFLAGS($wflag, [warnflags="${warnflags+$warnflags }$wflag"])
     done
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 30196)
+++ ChangeLog	(revision 30197)
@@ -1,3 +1,9 @@
+Tue Dec 14 11:25:20 2010  NARUSE, Yui  <naruse@r...>
+
+	* configure.in: Add -Werror=declaration-after-statement to default
+	  warning flag. If you are using GCC, this flag is useful to
+	  prevent breaking VC build.
+
 Tue Dec 14 10:25:57 2010  NAKAMURA Usaku  <usa@r...>
 
 	* ext/openssl/ossl_asn1.c (ossl_asn1_decode0): how many gcc-c99isms

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

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