diff options
| author | Bright Pan <[email protected]> | 2014-11-23 00:04:58 +0800 |
|---|---|---|
| committer | Bright Pan <[email protected]> | 2014-11-23 00:04:58 +0800 |
| commit | eeadfe47059f0ebd374f63443755c23c4df281cf (patch) | |
| tree | 18fb016d798b44de6a1c585c271b6de89f40703c /components/libc/armlibc | |
| parent | 9ecd18411fc1344e3d080d844b60c7070c3fb4d8 (diff) | |
Fix compile warning: variable "c" was declared but never referenced, when RT_USING_CONSOLE is disable.
Diffstat (limited to 'components/libc/armlibc')
| -rw-r--r-- | components/libc/armlibc/stubs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/libc/armlibc/stubs.c b/components/libc/armlibc/stubs.c index ea42777a08..cb651b66fa 100644 --- a/components/libc/armlibc/stubs.c +++ b/components/libc/armlibc/stubs.c @@ -224,10 +224,12 @@ char *_sys_command_string(char *cmd, int len) /* This function writes a character to the console. */ void _ttywrch(int ch) { +#ifdef RT_USING_CONSOLE char c; c = (char)ch; rt_kprintf(&c); +#endif } void _sys_exit(int return_code) |
