Removes warnings and empty files.