Fixed a warning and a complaint about a never-read variable.
Fixed a few more switch warnings.
More switch warnings.
Merge pull request #999 from mc-server/fixes

A few warning fixes