summaryrefslogtreecommitdiff
path: root/ext/win32/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-02 12:39:01 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-02 12:39:01 +0000
commit3be45505586ece2882529ab383351febca7f5683 (patch)
tree944254f593250f1fdfe368edce543f0dacae58b3 /ext/win32/lib
parentbae19b5547745dbf04310ca6bcb3c4e063e5b7b2 (diff)
Win32API.rb: use uplevel option to warn
Also warns always regardless $VERBOSE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/win32/lib')
-rw-r--r--ext/win32/lib/Win32API.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/win32/lib/Win32API.rb b/ext/win32/lib/Win32API.rb
index d03ecc1..97b29fb 100644
--- a/ext/win32/lib/Win32API.rb
+++ b/ext/win32/lib/Win32API.rb
@@ -2,7 +2,7 @@
# frozen_string_literal: true
# for backward compatibility
-warn "Warning:#{caller[0].sub(/:in `.*'\z/, '')}: Win32API is deprecated after Ruby 1.9.1; use fiddle directly instead" if $VERBOSE
+warn "Win32API is deprecated after Ruby 1.9.1; use fiddle directly instead", uplevel: 2
require 'fiddle/import'