A warning that you don't expect is often indicative of a logic error, rather than a syntax error.
If the unused variable is there because you're saying "I'm going to implement this check, but I want to test the other things first", fine. If it's there because you just forgot to implement the check, then it's a ticking time bomb.
186
u/[deleted] Sep 23 '19
Warnings are, generally speaking, as important as errors. They are errors waiting to happen.