Fix gcc warnings and BOGUS 'copy_fragment_to_storage'.