Save all the error when checking the useless variables