Fix compile warning: variable "c" was declared but never referenced, when RT_USING_CONSOLE is disable.