Remove a setwarnings call that seems to be deprecated