config review

* fix several compiler warnings
* fix several static analyzer warnings
* add some explicit casts
* remove unused function 'AssignIgnore_Global'