This warning appears even if there is an assignment made to the variable in question.
If you believe the warning and simply delete the declaration for the variable, your code will crash at runtime due to the attempt to make an assignment to a variable...