From 62853218d34f9b92dc878ce0f2e0774b4c368572 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 22 Jul 2015 14:09:29 -0600 Subject: [PATCH] Eliminate a warning detected by nuttx/tools/testbuild.sh --- nshlib/nsh_fscmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nshlib/nsh_fscmds.c b/nshlib/nsh_fscmds.c index 06947acc7..ed0c1c7a5 100644 --- a/nshlib/nsh_fscmds.c +++ b/nshlib/nsh_fscmds.c @@ -236,7 +236,7 @@ static inline int ls_specialdir(const char *dir) * Name: ls_handler ****************************************************************************/ -#if CONFIG_NFILE_DESCRIPTORS > 0 +#if CONFIG_NFILE_DESCRIPTORS > 0 && !defined(CONFIG_NSH_DISABLE_LS) static int ls_handler(FAR struct nsh_vtbl_s *vtbl, FAR const char *dirpath, FAR struct dirent *entryp, FAR void *pvarg) {