mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-20 04:26:04 +08:00
Fixed compiler warnings.
This commit is contained in:

committed by
Xiang Xiao

parent
d1cbbcdb41
commit
0cdb2cfa48
@@ -788,6 +788,8 @@ static inline void help_allcmds(FAR struct nsh_vtbl_s *vtbl)
|
||||
#ifndef CONFIG_NSH_DISABLE_HELP
|
||||
static inline void help_builtins(FAR struct nsh_vtbl_s *vtbl)
|
||||
{
|
||||
UNUSED(vtbl);
|
||||
|
||||
#ifdef CONFIG_NSH_BUILTIN_APPS
|
||||
FAR const struct builtin_s *builtin;
|
||||
unsigned int builtins_per_line;
|
||||
@@ -968,6 +970,8 @@ static int cmd_help(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
||||
static int cmd_unrecognized(FAR struct nsh_vtbl_s *vtbl, int argc,
|
||||
char **argv)
|
||||
{
|
||||
UNUSED(argc);
|
||||
|
||||
nsh_error(vtbl, g_fmtcmdnotfound, argv[0]);
|
||||
return ERROR;
|
||||
}
|
||||
@@ -979,6 +983,10 @@ static int cmd_unrecognized(FAR struct nsh_vtbl_s *vtbl, int argc,
|
||||
#ifndef CONFIG_NSH_DISABLESCRIPT
|
||||
static int cmd_true(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
||||
{
|
||||
UNUSED(vtbl);
|
||||
UNUSED(argc);
|
||||
UNUSED(argv);
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
@@ -991,6 +999,10 @@ static int cmd_true(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
||||
#ifndef CONFIG_NSH_DISABLESCRIPT
|
||||
static int cmd_false(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
||||
{
|
||||
UNUSED(vtbl);
|
||||
UNUSED(argc);
|
||||
UNUSED(argv);
|
||||
|
||||
return ERROR;
|
||||
}
|
||||
#endif
|
||||
@@ -1002,6 +1014,9 @@ static int cmd_false(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
||||
#ifndef CONFIG_NSH_DISABLE_EXIT
|
||||
static int cmd_exit(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
||||
{
|
||||
UNUSED(argc);
|
||||
UNUSED(argv);
|
||||
|
||||
nsh_exit(vtbl, 0);
|
||||
return OK;
|
||||
}
|
||||
@@ -1107,7 +1122,7 @@ int nsh_extmatch_count(FAR char *name, FAR int *matches, int namelen)
|
||||
int nr_matches = 0;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < NUM_CMDS; i++)
|
||||
for (i = 0; i < (int)NUM_CMDS; i++)
|
||||
{
|
||||
if (strncmp(name, g_cmdmap[i].cmd, namelen) == 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user