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

ruby-changes:21823

From: kosaki <ko1@a...>
Date: Sun, 27 Nov 2011 21:27:11 +0900 (JST)
Subject: [ruby-changes:21823] kosaki:r33872 (trunk): * configure.in: added -fno-strict-overflow. it suppress annoying

kosaki	2011-11-27 21:27:00 +0900 (Sun, 27 Nov 2011)

  New Revision: 33872

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

  Log:
    * configure.in: added -fno-strict-overflow. it suppress annoying
      -Wstrict-overflow warning.

  Modified files:
    trunk/ChangeLog
    trunk/configure.in

Index: configure.in
===================================================================
--- configure.in	(revision 33871)
+++ configure.in	(revision 33872)
@@ -496,7 +496,10 @@
     warnflags=
 fi
 if test "$GCC" = yes; then
+    # -D_FORTIFY_SOURCE
     RUBY_TRY_CFLAGS(-D_FORTIFY_SOURCE=2, [RUBY_APPEND_OPTION(XCFLAGS, -D_FORTIFY_SOURCE=2)])
+
+    # -fstack-protector
     AS_CASE(["$target_os"],
     [mingw*], [
 	stack_protector=no
@@ -508,6 +511,9 @@
 	RUBY_APPEND_OPTION(XCFLAGS, -fstack-protector)
 	RUBY_APPEND_OPTION(XLDFLAGS, -fstack-protector)
     fi
+
+    # suppress annoying -Wstrict-overflow warnings
+    RUBY_TRY_CFLAGS(-fno-strict-overflow, [RUBY_APPEND_OPTION(XCFLAGS, -fno-strict-overflow)])
 fi
 
 if test "$GCC" = ""; then
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 33871)
+++ ChangeLog	(revision 33872)
@@ -1,3 +1,8 @@
+Sun Nov 27 21:25:33 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* configure.in: added -fno-strict-overflow. it suppress annoying
+	  -Wstrict-overflow warning.
+
 Sun Nov 27 20:58:02 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* io.c (rb_write_error2): get rid of warning on linux. fwrite

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

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