Sha256: 117e43fdec4accfb5ea19f3bf6c2cca7c3867c3b8cc53195eb5ee61d0181997f

Contents?: true

Size: 601 Bytes

Versions: 6

Compression:

Stored size: 601 Bytes

Contents

# frozen_string_literal: false
module OpenSSL
  def self.deprecated_warning_flag
    unless flag = (@deprecated_warning_flag ||= nil)
      if try_compile("", flag = "-Werror=deprecated-declarations")
        if with_config("broken-apple-openssl")
          flag = "-Wno-deprecated-declarations"
        end
        $warnflags << " #{flag}"
      else
        flag = ""
      end
      @deprecated_warning_flag = flag
    end
    flag
  end

  def self.check_func(func, header)
    have_func(func, header, deprecated_warning_flag) and
      have_header(header, nil, deprecated_warning_flag)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rubysl-openssl-2.10 ext/rubysl/openssl/deprecation.rb
rubysl-openssl-2.9 ext/rubysl/openssl/deprecation.rb
rubysl-openssl-2.8.0 ext/rubysl/openssl/deprecation.rb
rubysl-openssl-2.7.0 ext/rubysl/openssl/deprecation.rb
rubysl-openssl-2.6.0 ext/rubysl/openssl/deprecation.rb
rubysl-openssl-2.5.0 ext/rubysl/openssl/deprecation.rb