diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-04-02 12:39:01 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-04-02 12:39:01 +0000 |
commit | 3be45505586ece2882529ab383351febca7f5683 (patch) | |
tree | 944254f593250f1fdfe368edce543f0dacae58b3 | |
parent | bae19b5547745dbf04310ca6bcb3c4e063e5b7b2 (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
-rw-r--r-- | ext/win32/lib/Win32API.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/win32/lib/Win32API.rb b/ext/win32/lib/Win32API.rb index d03ecc1c46..97b29fbf74 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' |