mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-19 03:13:34 +08:00
fix MDK AC5 build warnings
This commit is contained in:
@@ -1083,7 +1083,6 @@ static int cmd_list(int argc, char **argv)
|
||||
#endif /* RT_USING_DFS */
|
||||
default:
|
||||
goto _usage;
|
||||
break;
|
||||
};
|
||||
|
||||
return 0;
|
||||
|
@@ -797,7 +797,8 @@ static msh_cmd_opt_t *msh_get_cmd_opt(char *opt_str)
|
||||
char *ptr;
|
||||
int len;
|
||||
|
||||
if ((ptr = strchr(opt_str, ' ')))
|
||||
ptr = strchr(opt_str, ' ');
|
||||
if (ptr)
|
||||
{
|
||||
len = ptr - opt_str;
|
||||
}
|
||||
@@ -892,7 +893,8 @@ void msh_opt_auto_complete(char *prefix)
|
||||
char *opt_str = RT_NULL;
|
||||
msh_cmd_opt_t *opt = RT_NULL;
|
||||
|
||||
if ((argc = msh_get_argc(prefix, &opt_str)))
|
||||
argc = msh_get_argc(prefix, &opt_str);
|
||||
if (argc)
|
||||
{
|
||||
opt = msh_get_cmd_opt(prefix);
|
||||
}
|
||||
|
Reference in New Issue
Block a user