Suppress compiler warnings

closes Issue #4220
About 599f6d5 
It uses DebugLog() rather debugmsg() because ncurses screen already closed.