Eliminate some warnings in certain tiny configurations
This commit is contained in:
parent
1150be4a7c
commit
d3e08fa378
@ -108,7 +108,8 @@ typedef int (*direntry_handler_t)(FAR struct nsh_vtbl_s *, const char *,
|
|||||||
* Private Data
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#if CONFIG_NFILE_DESCRIPTORS > 0
|
#if CONFIG_NFILE_DESCRIPTORS > 0 && \
|
||||||
|
(!defined(CONFIG_NSH_DISABLE_LS) || !defined(CONFIG_NSH_DISABLE_CP))
|
||||||
/* Common buffer for file I/O. Note the use of this common buffer precludes
|
/* Common buffer for file I/O. Note the use of this common buffer precludes
|
||||||
* multiple copies of NSH running concurrently. It should be allocated per
|
* multiple copies of NSH running concurrently. It should be allocated per
|
||||||
* NSH instance and retained in the "vtbl" as is done for the telnet
|
* NSH instance and retained in the "vtbl" as is done for the telnet
|
||||||
@ -148,7 +149,8 @@ static void trim_dir(char *arg)
|
|||||||
* Name: nsh_getdirpath
|
* Name: nsh_getdirpath
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#if CONFIG_NFILE_DESCRIPTORS > 0
|
#if CONFIG_NFILE_DESCRIPTORS > 0 && \
|
||||||
|
(!defined(CONFIG_NSH_DISABLE_LS) || !defined(CONFIG_NSH_DISABLE_CP))
|
||||||
static char *nsh_getdirpath(const char *path, const char *file)
|
static char *nsh_getdirpath(const char *path, const char *file)
|
||||||
{
|
{
|
||||||
/* Handle the case where all that is left is '/' */
|
/* Handle the case where all that is left is '/' */
|
||||||
@ -171,7 +173,7 @@ static char *nsh_getdirpath(const char *path, const char *file)
|
|||||||
* Name: foreach_direntry
|
* Name: foreach_direntry
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#if CONFIG_NFILE_DESCRIPTORS > 0
|
#if CONFIG_NFILE_DESCRIPTORS > 0 && !defined(CONFIG_NSH_DISABLE_LS)
|
||||||
static int foreach_direntry(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd,
|
static int foreach_direntry(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd,
|
||||||
FAR const char *dirpath,
|
FAR const char *dirpath,
|
||||||
direntry_handler_t handler, void *pvarg)
|
direntry_handler_t handler, void *pvarg)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user