Merge pull request #9556 from ntkme/ruby-suppress-warning

Suppress warning for intentional circular require
pull/9567/head
Joshua Haberman 3 years ago committed by GitHub
commit 2a001f792f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      ruby/lib/google/protobuf/descriptor_dsl.rb

@ -2,7 +2,14 @@
#
# Code that implements the DSL for defining proto messages.
require 'google/protobuf/descriptor_pb'
# Suppress warning: loading in progress, circular require considered harmful.
# This circular require is intentional to avoid missing dependency.
begin
old_verbose, $VERBOSE = $VERBOSE, nil
require 'google/protobuf/descriptor_pb'
ensure
$VERBOSE = old_verbose
end
module Google
module Protobuf

Loading…
Cancel
Save