diff --git a/nshlib/nsh_fscmds.c b/nshlib/nsh_fscmds.c index f47dca896..35d5c81bd 100644 --- a/nshlib/nsh_fscmds.c +++ b/nshlib/nsh_fscmds.c @@ -121,6 +121,7 @@ static char g_iobuffer[IOBUFFERSIZE]; * Name: trim_dir ****************************************************************************/ +#if !defined(CONFIG_NSH_DISABLE_CP) || defined(CONFIG_NSH_FULLPATH) static void trim_dir(char *arg) { /* Skip any trailing '/' characters (unless it is also the leading '/') */ @@ -132,6 +133,7 @@ static void trim_dir(char *arg) len--; } } +#endif /**************************************************************************** * Name: nsh_getdirpath