Silence various compiler warnings

Mostly specious 'uninitialized' warnings due to convoluted logic.
Some missing {}s in array initializations.

A few truly unused variables.

No functional changes.