Fix initialization order warnings.
Avoid some minor warnings.
Fix some enum type warnings.
Fix some formatting warnings.
Fix some switch/case warnings.
Avoid an unused variable.
Fix some type comparison warnings.
Qt: Enable graphics logging by default (like Win.)
Qt: remove switch to show log (not supported.)
Fix a bad constant and unused var.
Merge pull request #4246 from unknownbrackets/warnings

Warning fixes