From 03d19637f61873cb86caf7311d2b3bf2757c9a8d Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 17 Jan 2013 08:50:12 +0000 Subject: win32ole: warning flag * ext/win32ole/extconf.rb (create_win32ole_makefile): replace or append warning flag. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/win32ole/extconf.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/win32ole/extconf.rb b/ext/win32ole/extconf.rb index c3717316d4..1a17524d0a 100644 --- a/ext/win32ole/extconf.rb +++ b/ext/win32ole/extconf.rb @@ -30,6 +30,7 @@ end case RUBY_PLATFORM when /mswin/ - $CFLAGS += ' /W3' + $CFLAGS.sub!(/((?:\A|\s)[-\/])W\d(?=\z|\s)/, '\1W3') or + $CFLAGS += ' -W3' end create_win32ole_makefile -- cgit v1.2.3