fix MDK AC5 build warnings

This commit is contained in:
yangpeng
2024-02-04 10:20:18 +08:00
committed by Meco Man
parent d5e2df46e5
commit 25d3136d02
5 changed files with 11 additions and 8 deletions

View File

@@ -1083,7 +1083,6 @@ static int cmd_list(int argc, char **argv)
#endif /* RT_USING_DFS */
default:
goto _usage;
break;
};
return 0;

View File

@@ -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);
}