summaryrefslogtreecommitdiff
path: root/ext/win32ole
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-17 08:50:12 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-17 08:50:12 +0000
commit03d19637f61873cb86caf7311d2b3bf2757c9a8d (patch)
tree5d17a0a58d1190855e989798f20dfd045b5b8353 /ext/win32ole
parenta23469f4b6d3395c3d8feeef5f34b082751676df (diff)
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
Diffstat (limited to 'ext/win32ole')
-rw-r--r--ext/win32ole/extconf.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/win32ole/extconf.rb b/ext/win32ole/extconf.rb
index c371731..1a17524 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