Permalink
Browse files

Make warning only in verbose mode.

  • Loading branch information...
headius committed Apr 26, 2012
1 parent b141683 commit 643e0cb0e0260a6860b78c935088a4e383314f7f
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/atomic.rb
View
@@ -65,7 +65,7 @@ def try_update
raise LoadError
end
rescue LoadError
- warn 'unsupported Ruby engine, using less-efficient Atomic impl'
+ warn 'unsupported Ruby engine, using less-efficient Atomic impl' if $VERBOSE
# Portable/generic (but not very memory or scheduling-efficient) fallback
class Atomic::InternalReference #:nodoc: all
def initialize(value)

0 comments on commit 643e0cb

Please sign in to comment.