Delete the unused variable declaration from the code. (pun intended)
(What??? it's what I do: point that the obvious is most likely the best solution.)
Now, from comments on other answers, apparently it's garbage generated from macros. Well, that's a pleonasm.
Solutions:
- refactor that macro to #if declare the variable only if it's really used;
- create another version of the macro that skips the unused variable generation.
- Better still, avoid using macros that bring issues to the code.