diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/syck/lib/syck.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/syck/lib/syck.rb b/ext/syck/lib/syck.rb index 0f43c139bc..2fc60c17e9 100644 --- a/ext/syck/lib/syck.rb +++ b/ext/syck/lib/syck.rb @@ -397,7 +397,9 @@ module Syck # Allocate an Emitter if needed # def self.quick_emit( oid, opts = {}, &e ) - warn "#{caller[0]}: YAML.quick_emit is deprecated" if $VERBOSE + if $VERBOSE && /syck\/rubytypes\.rb:\d+:in `to_yaml'/ !~ caller[0] + warn "#{caller[0]}: YAML.quick_emit is deprecated" + end out = if opts.is_a? Emitter opts |