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

ruby-changes:26809

From: nobu <ko1@a...>
Date: Thu, 17 Jan 2013 17:50:23 +0900 (JST)
Subject: [ruby-changes:26809] nobu:r38861 (trunk): win32ole: warning flag

nobu	2013-01-17 17:50:12 +0900 (Thu, 17 Jan 2013)

  New Revision: 38861

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

  Log:
    win32ole: warning flag
    
    * ext/win32ole/extconf.rb (create_win32ole_makefile): replace or
      append warning flag.

  Modified files:
    trunk/ext/win32ole/extconf.rb

Index: ext/win32ole/extconf.rb
===================================================================
--- ext/win32ole/extconf.rb	(revision 38860)
+++ ext/win32ole/extconf.rb	(revision 38861)
@@ -30,6 +30,7 @@ end https://github.com/ruby/ruby/blob/trunk/ext/win32ole/extconf.rb#L30
 
 case RUBY_PLATFORM
 when /mswin/
-  $CFLAGS += ' /W3'
+  $CFLAGS.sub!(/((?:\A|\s)[-\/])W\d(?=\z|\s)/, '\1W3') or
+    $CFLAGS += ' -W3'
 end
 create_win32ole_makefile

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

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