config review (re-up)

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

Thanks :+1: