Thanx. Applied. I've not tackled this class of warnings since they're busy work that don't fix actual problems. "Variable used before set"? Oh, yes. But some of those variable unused warnings where a function prototype has to match for a callback (e.g. signal or expat callbacks) are just moving in place. Some of the "variable set but not used" are kind of intentional and serve as internal documentation. Picking through those is tedious, to thanx for tackling it.
P.S. Please feel free to merge things like this into a single patch.
Here's a batch of them. There's plenty more to do.Thanks,