summaryrefslogtreecommitdiff
path: root/ext/openssl/deprecation.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/openssl/deprecation.rb')
-rw-r--r--ext/openssl/deprecation.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/openssl/deprecation.rb b/ext/openssl/deprecation.rb
index 6af7d562fbd..fdf2d30ed0c 100644
--- a/ext/openssl/deprecation.rb
+++ b/ext/openssl/deprecation.rb
@@ -12,6 +12,10 @@ module OpenSSL
flag
end
+ def self.restore_warning_flag
+ $warnflags = @warnflags
+ end
+
def self.check_func(func, header)
have_func(func, header, deprecated_warning_flag)
end