Warning prevention

This is a tweak of @myronmarstons warning prevention in rspec-core which could
then be applied back to rspec-core and other rspec libraries.

See rspec/rspec-core#1118