提交 a57580b9 编写于 作者: B bernard.xiong

remove compile warning.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@308 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 133c2743
......@@ -380,6 +380,8 @@ void list_prefix(char* prefix)
func_cnt = 0;
var_cnt = 0;
name_ptr = RT_NULL;
{
struct finsh_syscall* index;
for (index = _syscall_table_begin; index < _syscall_table_end; index ++)
......
......@@ -69,6 +69,9 @@ char *strdup(const char *s);
int isalpha( int ch );
int atoi(const char* s);
#else
/* use libc of armcc */
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#endif
#endif
......
......@@ -114,6 +114,7 @@ char *strdup(const char *s)
}
#endif
#if !defined(__CC_ARM) && !defined(__ICCARM__)
int isalpha( int ch )
{
return (unsigned int)((ch | 0x20) - 'a') < 26u;
......@@ -144,6 +145,7 @@ int isprint(unsigned char ch)
return (unsigned int)(ch - ' ') < 127u - ' ';
}
#endif
#endif
#ifdef RT_USING_DEVICE
static rt_err_t finsh_rx_ind(rt_device_t dev, rt_size_t size)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册