Acknowledged

SDK 4.2.1 Warning - Local variable "xxxxx" is not used...

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 that doesn't exist.

Is this the definition of the warning that is intended ??

I can see the value in a warning that indicates that the value from a variable is never used, indicating that you actually don't need the variable, but the warning as it currently works seems misleading to me.