List all unused variables in one warning. Cleanup implementation to run the check exactly once at the end of generation.