mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-30 22:10:28 +08:00
Fix compile warning: variable "c" was declared but never referenced, when RT_USING_CONSOLE is disable.
This commit is contained in:
parent
9ecd18411f
commit
eeadfe4705
@ -224,10 +224,12 @@ char *_sys_command_string(char *cmd, int len)
|
|||||||
/* This function writes a character to the console. */
|
/* This function writes a character to the console. */
|
||||||
void _ttywrch(int ch)
|
void _ttywrch(int ch)
|
||||||
{
|
{
|
||||||
|
#ifdef RT_USING_CONSOLE
|
||||||
char c;
|
char c;
|
||||||
|
|
||||||
c = (char)ch;
|
c = (char)ch;
|
||||||
rt_kprintf(&c);
|
rt_kprintf(&c);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void _sys_exit(int return_code)
|
void _sys_exit(int return_code)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user